winget upgrade breaks PATH - claude.exe moved to .local\bin without updating PATH

Resolved 💬 4 comments Opened Feb 23, 2026 by TJSidhu Closed Mar 24, 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?

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:

  1. Install Claude Code via winget on Windows
  2. Confirm it works (claude command recognised)
  3. Run winget upgrade Anthropic.ClaudeCode
  4. Open a new terminal and run claude
  5. 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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗