Skip to content

Session fails to start with Error: posix_spawnp failed #66

@dhumeniuk

Description

@dhumeniuk

Expected Behavior

Claude Code Web should successfully start a Claude session and open an interactive terminal in the browser when a working directory is selected.

Current Behavior

Session fails to start with Error: posix_spawnp failed when node-pty attempts to spawn the claude subprocess. The error occurs even when claude is symlinked to /usr/local/bin/claude.

Possible Solution

The node-pty native module may be compiled against a different Node version than the one currently active under nvm. Running npm rebuild node-pty from the claude-code-web install directory may resolve the issue. Alternatively, allowing users to specify a full path to the claude binary in config would bypass PATH resolution issues entirely.

Steps to Reproduce

  1. Install claude-code-web globally via npm using nvm-managed Node (v22.17.0)
  2. Install Claude Code and confirm claude is accessible in the terminal via which claude
  3. Start claude-code-web and open the web interface
  4. Select a working directory and attempt to start a session

Environment

Darwin Davids-Personal-MacBook-Pro.local 25.2.0 Darwin Kernel Version 25.2.0: Tue Nov 18 21:07:05 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6020 arm64

Checklists

### Issue Creation
- [ ] I have filled in all the required information above
- [ ] I have added this issue to the Roadmap project
- [ ] I have given the issue appropriate labels
### Commencement
- [ ] I am starting work on this issue
- [ ] I have understood the issue and clarified anything required
- [ ] I have assigned the issue to myself
- [ ] I have marked the issue as 'In Progress' in the Roadmap Project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions