Skip to content

Ensure 755 permissions on prebuild spawn-helper - #858

Merged
Daniel Imms (Tyriar) merged 1 commit into
mainfrom
tyriar/850
Jan 3, 2026
Merged

Ensure 755 permissions on prebuild spawn-helper#858
Daniel Imms (Tyriar) merged 1 commit into
mainfrom
tyriar/850

Conversation

@Tyriar

Copy link
Copy Markdown
Contributor

Fixes #850

Planning on verifying when a beta build goes out

cc Devraj Mehta (@devm33)

@Tyriar Daniel Imms (Tyriar) added this to the 1.2.0 milestone Jan 3, 2026
@Tyriar Daniel Imms (Tyriar) self-assigned this Jan 3, 2026
@Tyriar
Daniel Imms (Tyriar) merged commit 7bde56f into main Jan 3, 2026
5 checks passed
@Tyriar
Daniel Imms (Tyriar) deleted the tyriar/850 branch January 3, 2026 18:01
Comment thread scripts/prebuild.js
process.exit(1);
}

// Ensure spawn-helper has execute permission (may be stripped by npm pack)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confused by this. Seems to only happen on darwin-x64 and wasn't happening previously. Is npm pack definitely at fault?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Opus might have been lying about it due to leading. We should remove this anyway and go with the pipeline approach in https://github.com/microsoft/node-pty/pull/866/changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok added reverting this to #866

Chris Bartholomew (cdbartholomew) added a commit to cdbartholomew/vipershell that referenced this pull request Apr 1, 2026
node-pty@1.1.0 ships spawn-helper and pty.node without the execute bit
(mode 644), causing "posix_spawnp failed" when vipershell tries to open
a PTY for a terminal session. Add a postinstall script that fixes the
permissions after npm install, including global installs.

The upstream bug is tracked in microsoft/node-pty#850 and fixed in
microsoft/node-pty#858 and microsoft/node-pty#866, but only available
in prerelease (1.2.0-beta.x) so far.
Nicolò Boschi (nicoloboschi) pushed a commit to nicoloboschi/sheepit that referenced this pull request Apr 2, 2026
node-pty@1.1.0 ships spawn-helper and pty.node without the execute bit
(mode 644), causing "posix_spawnp failed" when vipershell tries to open
a PTY for a terminal session. Add a postinstall script that fixes the
permissions after npm install, including global installs.

The upstream bug is tracked in microsoft/node-pty#850 and fixed in
microsoft/node-pty#858 and microsoft/node-pty#866, but only available
in prerelease (1.2.0-beta.x) so far.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: spawn-helper shipped without execute bit in npm tarball causes posix_spawnp failures (pnpm)

3 participants