spawn ENOENT / command not found — page 3
A shell or tool binary was not on PATH when Claude Code tried to run it.
525 issues · 43 open · 482 resolved (92%) · 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. 59 new reports in the last 90 days vs 125 in the 90 before — -53%. The open backlog peaked at 58 in 2026-08 and sits at 43 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
266 of these reports name the Claude Code build they were running, spanning 132 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 14 days across 482 closures. Of the 482 closures with a recorded reason, 22% were closed as completed and 377 as not-planned or duplicate. The most recent completed fix landed in 2026-09.
Workarounds reported by the community
223 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 525 matches; the statistics above cover all 525.
- [Bug] Orphaned plugins execute hooks despite being uninstalled
- Windows installer silently fails on clean machines without VC++ Runtime
- [Bug] Claude Code generates misleading or false information
- [BUG] bash negation fails in bash mode with grep (`if ! grep` does not parse correctly)
- [BUG]
- [BUG] @ file mention fails to find .py files in VSCode/Cursor extension when system rg binary is not installed
- [BUG] **Bug: Claude Code for VS Code 2.1.51 - Webview fails to load on Windows (Service Worker + Activation Error)**
- [BUG] [Bug] Extension fails to activate on Windows v2.1.51 - hardcoded Linux path in sdk.mjs causes TypeError
- winget upgrade breaks PATH - claude.exe moved to .local\bin without updating PATH
- Bash tool escapes curly braces in eval, breaking shell syntax
- [FEATURE] Human-readable error banners for Claude-Desktop extensions
- Hooks fail with posix_spawn '/bin/sh' ENOENT without sandbox enabled
- [BUG] Cowork Windows - HcnCreateEndpoint fails with Element not found + macOS diagnostic code running on Windows
- [BUG] MCP server spawning fails for some .bat/.cmd files on Windows
- [Bug] Keyboard shortcut M+1 unexpectedly cancels dialog
- Windows: SessionStart hooks with .sh scripts fail due to path handling
- cygpath command not found in Git Bash (MINGW64) on Windows
- install.sh appears stuck during download and fails silently when installMethod=native exists
- [DOCS] Inaccurate verification command in JetBrains troubleshooting for non-NPM installs
- [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
- [BUG] [Cowork] Typing /skill whose !`cmd` fails hangs the cloud session silently (interactive twin of #87159)
- [BUG] bash-input prefill/tab-completion suggests relative-path script without required ./ prefix
- Interrupted auto-update leaves claude broken (missing bin symlink, placeholder stub, truncated native binary) with no self-healing
- Session-env snapshot file breaks when sourced: unquoted LS_COLORS/SSH_CONNECTION/LESSCLOSE spam 'command not found' on every Bash call
- [BUG] Windows: MCP image generation servers fail to load despite correct configuration
- [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
- Bash tool: runaway child processes are memory-uncapped and outlive their parent shell's timeout — parallel sub-agents' orphaned pytest children exhausted 128 GB RAM and caused a macOS watchdog kernel panic
- Claude Code should expose app version in context, read its own UI state, and give clearer model suspension messages
- [BUG] `claude install <channel>` removes working npm-global install even when the new native install isn't reachable on PATH (cleanup gated on PATH-detection that's already informational only)
- [BUG] Truncated shell snapshot silently drops plugin bin/ PATH entries (partial snapshot used after builder is killed)
- [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] GitHub PR Manager fails in SSH remote sessions: gh spawned locally instead of over RemoteProcess
- Parallel tool calls cancel sibling calls when one fails
- Launch claude from anywhere: interactive recent-projects picker
- Ultrareview v2.1.96: docs describe /tasks command + claude ultrareview --json subcommand that don't exist; findings hard to read after completion
- [BUG] Ink renderer crashes on Windows 11 build 26200 (Canary) duplicate banners, terminal mode leaks, mid-operation aborts
- [BUG] Statusline not displaying on Windows [fixed]
- [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
- [BUG] Bash tool: env vars with spaces in values cause zsh startup errors
- [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
- [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