[BUG] Claude crashes with an Error: Executable not found in $PATH
Resolved 💬 3 comments Opened Feb 16, 2026 by narnaud Closed Feb 20, 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?
When running code, I keep hitting the same Error:
ERROR Executable not found in $PATH: "C:\Users\nicolas\scoop\apps\git\current\cmd"
- at spawnSync (unknown)
- spawnSync (node:child_process:226:22)
- execSync (node:child_process:275:109)
- $b (B:/~BUN/root/claude.exe:29:3503)
- <anonymous> (B:/~BUN/root/claude.exe:63:1174)
- D (B:/~BUN/root/claude.exe:62:19481)
- J$f (B:/~BUN/root/claude.exe:6171:4965)
- Sm (B:/~BUN/root/claude.exe:6171:8174)
- <anonymous> (B:/~BUN/root/claude.exe:6171:7942)
- some (native:1:11)
The path exists, it's in PATH. I tried with both powershell and cmd and keep having the same error.
I tried setting up CLAUDE_CODE_GIT_BASH_PATH, I tried also installing Git in Program Files (instead of via scoop), but I keep hitting the same error, preventing me to do anything with Claude...
What Should Happen?
No errors, everything should just work.
Error Messages/Logs
ERROR Executable not found in $PATH: "C:\Users\nicolas\scoop\apps\git\current\cmd"
- at spawnSync (unknown)
- spawnSync (node:child_process:226:22)
- execSync (node:child_process:275:109)
- $b (B:/~BUN/root/claude.exe:29:3503)
- <anonymous> (B:/~BUN/root/claude.exe:63:1174)
- D (B:/~BUN/root/claude.exe:62:19481)
- J$f (B:/~BUN/root/claude.exe:6171:4965)
- Sm (B:/~BUN/root/claude.exe:6171:8174)
- <anonymous> (B:/~BUN/root/claude.exe:6171:7942)
- some (native:1:11)
Steps to Reproduce
I'm working on a Rust app, with the feature-dev plugin.
Everytime I'm asking to do something, I have this error.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v25.6.0
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗