Skip to content

[ERROR] Error spawning process: Error: posix_spawnp failed. #608

@odbol

Description

@odbol

Describe the bug
Same as #372, but I'm not allowed to reopen it.

To Reproduce
Steps to reproduce the behavior:

  1. npx @siteboon/claude-code-ui
  2. Installs version 1.27.1
  3. Log in and click Claude Code to authenticate

Expected behavior
Authenticates with CC

Screenshots
If applicable, add screenshots to help explain your problem.

Error message

🐚 Shell client connected
📨 Shell message received: init
[INFO] Starting shell in: /Users/phreakhead/Documents/development
📋 Session info: Plain shell mode
🤖 Provider: plain-shell
⚡ Initial command: claude --dangerously-skip-permissions /login
🔧 Executing shell command: claude --dangerously-skip-permissions /login
📐 Using terminal dimensions: 110 x 31
[ERROR] Error spawning process: Error: posix_spawnp failed.
    at new UnixTerminal (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/node-pty/lib/unixTerminal.js:92:24)
    at Object.spawn (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/node-pty/lib/index.js:30:12)
    at WebSocket.<anonymous> (file:///Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/@siteboon/claude-code-ui/server/index.js:1816:40)
    at WebSocket.emit (node:events:524:28)
    at Receiver.receiverOnMessage (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/ws/lib/websocket.js:1220:20)
    at Receiver.emit (node:events:524:28)
    at Receiver.dataMessage (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/ws/lib/receiver.js:596:14)
    at Receiver.getData (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/ws/lib/receiver.js:496:10)
    at Receiver.startLoop (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/ws/lib/receiver.js:167:16)
    at Receiver._write (/Users/phreakhead/.npm/_npx/844e9b06ba9fb183/node_modules/ws/lib/receiver.js:94:10)
🔌 Shell client disconnected

Desktop (please complete the following information):

  • OS: macOS 15.7.4
  • Browser Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]

Additional context

Running the patch script in #372 (comment) fixes it, but fresh installs still have the issue. Is there a way to fix it for fresh installs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions