[BUG] Error: Failed to spawn Claude Code process: spawn ... ENOENT
Status Closed — not planned
Maintainer reply None cached
Activity 11 comments · opened Oct 13, 2025 · closed Mar 4, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
<img width="459" height="605" alt="Image" src="https://github.com/user-attachments/assets/537dc3f1-4c17-4863-8749-e3bc84649078" />
What Should Happen?
It should work as usual. It cannot browse conversations from history or anything.
Error Messages/Logs
Steps to Reproduce
Just open the extension and here it is
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.14
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
11 Comments
Hey had been 3 weeks any update on this?
Possible Solution
I encountered the same error on Arch Linux in WSL:
What I tried (didn't work):
~/.local/bin/claude@command:workbench.extensions.installLocalExtensionsWhat fixed it for me:
Ctrl+Shift+P→ "Connect to WSL using Distro..."Possible root cause: VS Code wasn't properly running in the WSL context, so it couldn't access the
claudebinary installed in the WSL filesystem.Other installation details:
curl -fsSL https://claude.ai/install.sh | bash~/.local/bin/claudeclaude --versionshows:2.0.50 (Claude Code)I ran into the same thing.
The root cause was moving a folder in the root of my VSCode workspace to a different name (and not sure if related, but subfolder of another workspace).
What fixed it for me was removing the old, nonexistent folder from the workspace.
Right click --> Remove folder from workspaceThis issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
@austin-liminal thank you 100%
I'm still experiencing the same problem using VS Code on Windows.
I've confirmed that the .exe file exists, but the result is ENOENT.
Same here
I'm experiencing the same issue on VS Code on the Mac - it works fine on one Mac and not on the other one.
UPDATE: After about 3-4 hours and a restart, this is not longer erroring out
Guide: Fix “Failed to spawn Claude Code process … claude.exe ENOENT” on Windows (VS Code / Cursor)
Error text (typical)
What this means
ENOENTduringspawnmeans Windows cannot find (or cannot access) the executable at the exact path the extension is trying to run. Most commonly:claude.exefile is missing (partial install / stale extension folder reference)This guide uses commands that work across machines by relying on environment variables and by having you paste the path shown in your error.
---
Step 1: Fully close the editor and kill background processes
Closing the window is not always enough. Kill any lingering processes.
In PowerShell:
---
Step 2: Verify whether
claude.exeexists (using the path from your error)Copy the full
claude.exepath shown in the error and paste it into this command:Interpretation:
---
Step 3: Clean reinstall (fixes missing/corrupted extension binaries)
3.1 Uninstall the Claude Code extension
In VS Code/Cursor: Extensions → search “Claude Code” → Uninstall.
3.2 Delete leftover extension folders (VS Code)
Run:
If you use VS Code Insiders, also run:
For Cursor, extension storage can differ by installation. The safest approach is:
anthropic.claude-code-...folder after uninstalling3.3 Reinstall the extension
Reopen VS Code/Cursor and reinstall “Claude Code”.
3.4 Confirm the binary exists (VS Code default location)
If this returns a path, retry the extension.
---
Step 4: Security and execution checks (when
Test-Pathreturns True)4.1 Unblock the executable
If Windows marked it as downloaded/blocked:
4.2 Try running it directly
This tests whether Windows can execute it:
4.3 Check if security software quarantined it
If the file keeps disappearing after reinstall, check:
Restore/allow as required for your environment.
---
Step 5: Restart guidance and the correct way to relaunch
When to restart VS Code/Cursor
Restart the editor after any of the following:
When to restart the entire computer
Do a full Windows restart if:
A reboot clears background processes and forces Windows to reload environment variables and extension state.
Do not launch from a pinned taskbar icon (during troubleshooting)
Avoid opening VS Code/Cursor from a pinned taskbar shortcut while troubleshooting. Pinned launches can keep stale state alive via cached processes.
Preferred launch method
Use one of these:
``
powershell
``code .
Then open the Claude Code panel and retry.
---
Quick verification block (copy/paste)
After you paste the error path into
$ClaudeExe, run:If
Test-Pathis True and--versionruns successfully, the executable is present and runnable. At that point, remaining failures are usually resolved by:---
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.