winget upgrade breaks PATH - claude.exe moved to .local\bin without updating PATH
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?
After running winget upgrade Anthropic.ClaudeCode on Windows, Claude Code stopped working from the terminal.
What Should Happen?
The executable was moved to C:\Users\<username>\.local\bin\claude.exe but this directory was not added to PATH, meaning claude was no longer recognised as a command.
Before the upgrade it worked fine with no manual PATH configuration needed. After the upgrade, PATH had to be manually updated in the PowerShell profile to restore functionality.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Install Claude Code via winget on Windows
- Confirm it works (claude command recognised)
- Run
winget upgrade Anthropic.ClaudeCode - Open a new terminal and run
claude - Command not found error
Workaround:
Manually add the following to your PowerShell profile (notepad $PROFILE):
$env:PATH += ";C:\Users\<username>\.local\bin"
Then reload with . $PROFILE
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.50
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗