-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
## Bug Description
Claudia fails to launch Claude Code sessions on macOS with error "env: node: No such file or directory"
## Environment
- **OS**: macOS (ARM64)
- **Claudia Version**: Latest (built from source)
- **Node Version**: v18.20.8 (via Homebrew)
- **Claude Code Version**: 1.0.40
## Root Cause
The issue is caused by the shebang in Claude Code script:
```bash
#!/usr/bin/env -S node --no-warnings --enable-source-maps
The -S
flag in /usr/bin/env
is not properly supported in the execution context that Claudia uses on macOS.
Reproduction Steps
- Install Claude Code via npm:
npm install -g @anthropic-ai/claude-code
- Launch Claudia
- Create/open a CC Project
- Try to start a Claude Code session
- Error appears: "env: node: No such file or directory"
Expected Behavior
Claude Code should launch successfully
Workaround Found
Modifying the shebang in the Claude Code script from:
#!/usr/bin/env -S node --no-warnings --enable-source-maps
to:
#!/usr/bin/env node
Resolves the issue completely.
Suggested Fix
Claudia could either:
- Pre-process the Claude Code script to remove the
-S
flag before execution - Use a different execution method that handles the
-S
flag properly on macOS - Document this known issue and workaround in the troubleshooting guide
Additional Context
node --version
works fine in terminal/usr/bin/env node --version
works fine/usr/bin/env -S node --version
may fail depending on macOS setup- Issue persists across reboots and is only resolved by shebang modification
- Setting PATH environment variables in Claudia Settings does not resolve the issue
- This appears to be specific to how macOS handles the
-S
flag in subprocess execution contexts
ben8987, spenlep-amzn, anthonymf, Gintasz, Pipboyguy and 11 more
Metadata
Metadata
Assignees
Labels
No labels