fix(macos): fix node-pty posix_spawnp error with postinstall script (#347)

* fix(macos): fix node-pty posix_spawnp error with postinstall script

Add postinstall script that fixes spawn-helper permissions on macOS.
The node-pty package ships spawn-helper without execute permissions (644),
causing "posix_spawnp failed" errors when spawning terminal processes.

Closes #284
This commit is contained in:
Feraudet Cyril
2026-02-18 12:21:00 +01:00
committed by GitHub
parent fc369d047e
commit 38a593c97f
3 changed files with 71 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
"server/",
"shared/",
"dist/",
"scripts/",
"README.md"
],
"homepage": "https://cloudcli.ai",
@@ -30,7 +31,8 @@
"preview": "vite preview",
"typecheck": "tsc --noEmit -p tsconfig.json",
"start": "npm run build && npm run server",
"release": "./release.sh"
"release": "./release.sh",
"postinstall": "node scripts/fix-node-pty.js"
},
"keywords": [
"claude code",