spawn ENOENT / command not found — page 3
A shell or tool binary was not on PATH when Claude Code tried to run it.
506 issues · 58 open · 448 resolved (89%) · first seen Feb 24, 2025
First response · integration
What to do now
Most likely: A local integration or child process did not satisfy Claude Code’s expected contract.
- Isolate the failing MCP server, shell command or editor integration.
- Run that dependency directly and capture its exit code and stderr.
- Compare with a clean configuration before editing global settings.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is converging. 92 new reports in the last 90 days vs 152 in the 90 before — -39%. The open backlog peaked at 58 in 2026-08 and sits at 58 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
254 of these reports name the Claude Code build they were running, spanning 122 releases. Heaviest reporters:
- Claude Code v2.1.51
- Claude Code v2.1.129
- Claude Code v2.1.136
- Claude Code v2.1.42
- Claude Code v2.0.76
- Claude Code v2.1.123
- Claude Code v2.1.7
- Claude Code v2.1.90
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 4 days across 448 closures. Of the 448 closures with a recorded reason, 23% were closed as completed and 344 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
217 of these issues post a workaround someone says worked. The highest-engagement ones:
- [FEATURE] .NET 9 or 10 SDK support in Claude Code for web runtime environment
- …environment Share a roadmap for future SDK version updates Workaround: Currently, users need to either downgrade their projects to .NET 8 or build locally/in CI/CD pipelines. Thank you! Proposed Solution install .Net la…
Found in the description of #11627 · resolved - Shell Function Inheritance Issue - Zoxide and Dynamic Functions Fail in Bash Tool
- …n Code When runs, it generates shell functions like: Failed Workarounds Attempted 1. Manual function definition : Functions defined but not accessible 2. Re-sourcing ~/.zshrc : No effect in Claude Code context 3. Direct…
Found in the description of #2407 · resolved - SSH remote connection fails on Windows — hardcoded /usr/bin/ssh path
- I've tried these commands as a workaround but got another error:
Found in the thread of #25659 · resolved - [BUG] Native Windows(Powershell) install of Claude Code is not viable
- Ran into this same issue tonight. Found workarounds that might help others: The binary does exist It's bundled inside the VS Code extension: Workaround Open a new PowerShell window and should work. Note: When the VS Code…
Found in the thread of #14902 · resolved - Bug: claude command not found after npm install -g on macOS with Homebrew due to incorrect symlink
- …JavaScript file instead of the executable launcher script. Workaround The issue can be resolved by manually replacing the incorrect symbolic link with the correct one. 1. Remove the incorrect link: 1 rm /opt/homebrew/bi…
Found in the description of #3172 · still open
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 201–300
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 506 matches; the statistics above cover all 506.
- [DOCS] Clarify Node.js requirement for MCP usage in Setup documentation
- [BUG]: Authentication loop: Grey screen, 403 error, and claude command not found
- Shell snapshot parser corrupts bash options on Windows/Cygwin (or, heckhash)
- [Bug] Sonnet model quota unusually high at start of billing period (15%)
- [FEATURE] - VSCode Extension: Terminal integration parity with Copilot agent mode
- spawn ENOENT when using pathToClaudeCodeExecutable in Docker container
- [BUG] bash mode persists in queued messages
- [BUG] Ran out of disk space in a session. Claude code now broken.
- [BUG] Claude Code CLI crashes on Windows with "cygpath: command not found" error
- [BUG] ~/.local/bin is not in your PATH warning even though I am installed through npm
- Claude Code Cannot Run dotnet Commands On Windows
- Bash tool: "wc" via command substitution fails with "command not found" inside a for-loop with 2+ items
- [BUG] Windows: Bash tool silently corrupts written file content via command substitution and reports exit code 0
- [BUG] Bash tool broken on Windows: /usr/bin/bash: -c: line 26: unexpected EOF while looking for matching backtick
- Plugin commands not available in background sessions
- [BUG] Desktop App stuck on "Claude will return soon" with error 093O2GW on macOS
- CLAUDE.md rules aren't reliably followed; PreToolUse hooks are a partial, hand-rolled stopgap
- [BUG] ! prefix ignores configured primary shell on Windows, always routes to bash
- [BUG] Violation of claude.md with regards to git commands
- [BUG] Auto-update drops ~/.local/bin/claude symlink on Linux (standalone installer), leaving CLI unavailable
- Sandboxed Bash commands get a spurious backslash before `!` (shell-quote re-escapes the eval wrapper)
- [BUG] dyld: cannot load 'claude-2.1.173-darwin-x64' on macOS 10.14 Intel
- [BUG] statusLine regression in 2.1.171/2.1.172 (Windows): command now spawned via Git Bash - backslash paths silently fail, status line blank
- Hook runner spawns with deleted session cwd — every hook fails with `ENOENT: posix_spawn '/bin/sh'` and PreToolUse deny-hooks fail open (distinct from the Bash-tool cwd validation)
- [BUG] exclamation mark corrupted in shell calls
- [BUG] Windows/Cowork: built-in Node.js not used for local MCP plugin servers → spawn node ENOENT (Windows repro of #35175)
- Bash tool: PATH not Windows->POSIX translated when MSYS bash subprocess respawns mid-session
- Parallel tool calls cancel sibling calls when one fails
- Ultrareview v2.1.96: docs describe /tasks command + claude ultrareview --json subcommand that don't exist; findings hard to read after completion
- [BUG] Auto-updater rewrites ~/.local/bin/claude as self-referential relative symlink → ELOOP (recurrence of #45260, on 2.1.152)
- Feedback: Limitations found during intensive 8h MCP development session
- Cowork: Host-Mac AppleScript bridge for native macOS app integration
- [BUG] LSP spawn fails on Windows (ENOENT) for intelephense and typescript-language-server, but not pyright
- [Bug] Bash tool: zsh command resolution fails after compound pipelines with while-read and &&-chains
- Bash tool: env vars with spaces in values cause zsh startup errors
- [BUG] "Could not load connectors directory" after upgrading to macOS 26.5
- [BUG] /remote-control slash command not registered for Max account — server-side disableRemoteControl flag suspected
- [BUG] Twrmux
- Claude Code v2.1.136 extension fails to activate — 'openLast' command not found
- [BUG] claude-code v2.1.136 (win32-x64) fails to activate — hardcoded Linux CI build path in extension bundle
- [Claude-Sonnet-4-6] - Copy file error, never learns correct method in Windows
- [FEATURE] make bash mode able to use aliases
- [bug] VSCode extension activation fails on Windows due to hardcoded /home/runner/ path in extension.js
- [BUG] Extension v2.1.129 fails to activate on Windows — Linux CI path baked into bundle
- [BUG] Extension activation fils on Windows: hardcode Linux build in sdk.mjs
- Agent-team teammate reports 'Spawned successfully' but never registers in mailbox (v2.1.123, macOS, tmux)
- [Bug] VSCode extension on Windows: spawn rg.exe ENOENT in 2.1.120 — bundled rg.exe dropped during native-binary transition
- [Bug] Embedded `bfs`/`ugrep` not exposed in `Bash` tool (native macOS build 2.1.117+)
- [BUG] v2.1.117 extension fails to activate on Windows — "command not found"
- Hook errors for PreToolUse:Agent / PostToolUse:Agent surface cryptic "command not found" output
- IME composition on macOS routes committed text through key-action dispatcher (e.g. "up", "clear" trigger arrow-up / clear-screen instead of being entered)
- [BUG] Shell snapshot exports PATH with single-quoted ${PATH}, preventing expansion
- Bash tool on Windows Git Bash cannot find common binaries (git, task, ls) after 2.1.x update
- [Bug] npm-global auto-updater + macOS AppleSystemPolicy guts package directory, breaks CLI
- [BUG] Claude Code Desktop session has incomplete PATH — misses Homebrew, bun, and other user-installed tools
- I don't have enough context from "/summit" to generate a meaningful GitHub issue title. Could you please provide the actual bug report or feature request details, including: - What the issue is - What error message (if any) appears - What behavior is expe
- Shell snapshot missing GVM (_bash_pseudo_hash) dependencies causes setValueForKeyFakeAssocArray errors on cd
- [BUG] [VSCode Extension] File edits automatically switch active editor tab to edited file
- [Bug] Claude Code hangs when pasting large formatted content like tables
- [BUG] CLI-style terminal does not use bundled CLI binary, causing "command not found" error
- [BUG] MCP Desktop Extensions Fail on MSIX-Packaged Claude Desktop (Windows)
- Plugin system overwrites env.PATH with literal ${PATH}, breaking basic shell commands
- [Feature Request] Add Chrome flag support for WSL environment
- Shell spawned as non-login shell, missing PATH from .zprofile/.bash_profile
- typescript-lsp plugin ENOENT on Windows: spawn without shell can't resolve .cmd shims
- spawn pgrep ENOENT crash on macOS (regression in v2.1.91)
- Shell snapshot hardcodes process.env.PATH instead of capturing shell's PATH
- Shell snapshot captures parent process PATH instead of login shell PATH (macOS, Claude Desktop, v2.1.87 regression)
- [BUG] Agent team spawning fails silently — launch commands split at ~255 bytes, agents never start
- [Dev10x:skill-reinforcement] Output should warn MCP tools are not CLI commands
- [Bug] Claude Code hangs with stagnant token usage until retry
- [BUG] Repository not appearing in scheduled agent repo selector after GitHub App install
- LSP plugins fail on Windows: spawn ENOENT for npm global shim scripts
- Hook spawn fails with ENOENT when session CWD is deleted
- /remote-control not available on WSL2 - feature flag tengu_ccr_bridge set to false
- [Feature Request] Add remote-control access functionality for Max plan
- [BUG] Claude CLI adds special chars when copy/pasting command from output
- SDK spawn reports misleading ENOENT when cwd does not exist
- [BUG]
- Native install detection fails when claude is installed via Homebrew
- [BUG] Shell initialization fails (exit 127) when .bashrc contains extglob pattern inside command substitution in function definition
- LSP plugins fail on Windows: spawn() cannot find npm-installed .cmd binaries
- [BUG] Shell snapshot corruption on Windows MSYS/Git Bash - base64 data interpreted as commands
- Backgrounded sudo processes escape Bash tool timeout, causing unbounded disk growth (300GB+)
- [Bug] Chrome extension browser tool shows Disabled despite extension installation and fails with OAuth scope error
- Korean IME composition buffer leaks into tmux send-keys during agent team spawning
- [Bug] Missing session_name field in statusline JSON payload
- VS Code extension v2.1.55 fails to activate on Windows — hardcoded Linux path in build
- [Bug] VSCode extension v2.1.53 (win32-x64) fails to activate: hardcoded Linux path in sdk.mjs
- [BUG] marketplace plugin fails with 'Executable not found' on fresh runners (v2.1.53)
- [Bug] Remote Control session fails with invalid Node.js flag `--sdk-url`
- [BUG] VS Code extension v2.1.51 fails to activate on Windows — TypeError: invalid 'filename' argument referencing CI build path (sdk.mjs)
- [BUG] VS Code extension v2.1.51 fails to activate on Windows — hardcoded CI build path in createRequire`
- [BUG] Skill silently fails (0 tokens, immediate exit) when SKILL.md body contains backtick-wrapped `!`
- Stop hook fails with 'spawn /bin/sh ENOENT' on every session end (v2.1.39)
- '!' (bash mode) runs a non-interactive shell — ~/.zshrc not sourced, aliases not expanded
- preview_start fails with spawn npm ENOENT on Windows
- Cowork connectin API bug
- [BUG] Cowork Windows — macOS diagnostic code paths running on Windows; VM fails to create network endpoint
- [BUG] [Cowork] Windows: VM fails to start with 0x80070057 "Microsoft Virtual BIOS" error + macOS network diagnostics commands