Skip to content

fix: chmod node-pty spawn-helper in postinstall#22

Merged
connorads merged 3 commits intoconnorads:mainfrom
tborys:fix/node-pty-spawn-helper-permissions
Mar 29, 2026
Merged

fix: chmod node-pty spawn-helper in postinstall#22
connorads merged 3 commits intoconnorads:mainfrom
tborys:fix/node-pty-spawn-helper-permissions

Conversation

@tborys
Copy link
Copy Markdown
Contributor

@tborys tborys commented Mar 29, 2026

Fixes #21

Summary

Problem

On macOS, npm install -g remobi installs node-pty's spawn-helper binary without execute permission (-rw-r--r--). This causes remobi serve to crash immediately with posix_spawnp failed.

Fix

A postinstall script resolves the node-pty package location and chmods spawn-helper for both darwin-arm64 and darwin-x64 prebuilds. Silently skips if node-pty is not found.

Test plan

  • npm install -g remobi on macOS arm64, verify remobi serve starts without error
  • Verify spawn-helper has +x after install
  • Verify no-op on Linux (no darwin prebuilds to chmod)

Copy link
Copy Markdown
Owner

@connorads connorads left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tborys

Think your clanker accidentally deleted all/most of the repo 😅
If you sort that out I can give this a test and then get it merged.

Image

@tborys
Copy link
Copy Markdown
Contributor Author

tborys commented Mar 29, 2026

LOL, don't merge it, sorry about it man, I will take a look...

@tborys tborys force-pushed the fix/node-pty-spawn-helper-permissions branch from 9ac3378 to 0a8c475 Compare March 29, 2026 19:42
Single quotes, tabs, sorted imports to match project conventions.
Link to upstream issue so we know when to delete this.
@connorads connorads merged commit b971db1 into connorads:main Mar 29, 2026
2 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 29, 2026
## [1.0.2](v1.0.1...v1.0.2) (2026-03-29)

### Bug Fixes

* posix_spawnp failed on macos ([#22](#22)) ([b971db1](b971db1))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

posix_spawnp failed on macOS after npm install -g remobi

2 participants