-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
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
npm install -g remobi@latest(v1.0.1, Node v22, macOS arm64)remobi serve- Crashes with
posix_spawnp failed
Workaround
chmod +x $(npm root -g)/remobi/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helperRoot 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.
Reactions are currently unavailable