Preflight Checklist
What's Wrong?
Bug Description
When launching claude on Windows, the auto-update process renames claude.exe to claude.exe.old.<timestamp> but fails to replace it with the new version, leaving no claude.exe in the bin directory.
Workaround
Renaming the .old file back to claude.exe restores functionality, but the issue recurs on next launch.
Environment
- OS: Windows
- Node: v24.15.0
- Node manager: NVM for Windows
- Claude Code: installed globally via npm
What Should Happen?
The auto-update should either:
- Successfully download and place the new
claude.exe before renaming the old one
- Roll back to the original
claude.exe if the update fails
- Not break the existing installation on failure
Error Messages/Logs
$ claude
/c/nvm4w/nodejs/claude: line 12: C:\nvm4w\nodejs/node_modules/@anthropic-ai/claude-code/bin/claude.exe: No such file or directory
claude
'"C:\nvm4w\nodejs\\node_modules\@anthropic-ai\claude-code\bin\claude.exe"' is not recognized as an internal or external command,
operable program or batch file.
Steps to Reproduce
- Install Claude Code globally via
npm install -g @anthropic-ai/claude-code
- Run
claude — works fine
- Close the session
- Run
claude again — fails with:
node_modules/@anthropic-ai/claude-code/bin/claude.exe: No such file or directory
- Inspecting the bin directory shows only
claude.exe.old.<timestamp> — no claude.exe
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.123
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response
Preflight Checklist
What's Wrong?
Bug Description
When launching
claudeon Windows, the auto-update process renamesclaude.exetoclaude.exe.old.<timestamp>but fails to replace it with the new version, leaving noclaude.exein the bin directory.Workaround
Renaming the
.oldfile back toclaude.exerestores functionality, but the issue recurs on next launch.Environment
What Should Happen?
The auto-update should either:
claude.exebefore renaming the old oneclaude.exeif the update failsError Messages/Logs
Steps to Reproduce
npm install -g @anthropic-ai/claude-codeclaude— works fineclaudeagain — fails with:node_modules/@anthropic-ai/claude-code/bin/claude.exe: No such file or directory
claude.exe.old.<timestamp>— noclaude.exeClaude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.123
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response