Skip to content

posix_spawnp failed on macOS after npm install -g remobi #21

@tborys

Description

@tborys

node-pty's spawn-helper prebuild ships without execute permission on macOS (-rw-r--r-- instead of -rwxr-xr-x). This causes remobi serve to fail immediately with:

Error: posix_spawnp failed.
    at new UnixTerminal (.../node-pty/lib/unixTerminal.js:92:24)

Reproduction

  1. npm install -g remobi@latest (v1.0.1, Node v22, macOS arm64)
  2. remobi serve
  3. Crashes with posix_spawnp failed

Workaround

chmod +x $(npm root -g)/remobi/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper

Root cause

Upstream node-pty bug (microsoft/node-pty#850). npm does not preserve executable bits from tarballs. The fix was merged upstream but only released in 1.2.0 betas. remobi depends on ^1.1.0 (stable).

Suggested fix

Add a postinstall script to chmod the spawn-helper as a workaround until node-pty 1.2.0 stable lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions