[BUG] Native Windows(Powershell) install of Claude Code is not viable
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 downloading claude code from windows
Windows + PowerShell combinations, the redirect chain fails silently.
The script finishes, but the binary is never downloaded.
TLS works
PowerShell works
Defender is not blocking
The binary endpoint does not resolve correctly
claude.exe never appears
The installer script “succeeds” but produces no binary
I have uv.exe, hf.exe, but no claude.exe
so thats why the claude starting command is also not working
What Should Happen?
after download I should be able to use (claude or claude -v) like command or I should see claude.exe file
Error Messages/Logs
C:\WINDOWS\system32>
>> irm https://claude.ai/install.ps1 | iex
Setting up Claude Code...
√ Claude Code successfully installed!
Version: 2.0.67
Location: C:\Users\priya\.local\bin\claude.exe
Next: Run claude --help to get started
‼ Setup notes:
• installMethod is native, but claude command not found at C:\Users\priya\.local\bin\claude.exe
✅ Installation complete!
PS C:\WINDOWS\system32> claude --version
>>
claude : The term 'claude' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ claude --version
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (claude:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CommandNotFoundException
Steps to Reproduce
just try to download claude code in windows powershell(administrator mode )
and try to use it
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
letest version from docs . maybe v2.0.74
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
https://openrouter.ai/docs/guides/guides/claude-code-integration
following this docs right now . but the command is same for powershell
OK THE CMD COMMAND FROM CLAUDE WEBSITE IS WORKING PROPERLY , BUT THE POWERSHELL ONE IS NOT
18 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I can also verify that this works with the Windows CMD, but not with Windows PowerShell. I ran into the same issues.
I already mentioned that in capital
@Priyabhunia I was just verifying that I too saw the same, and was just agreeing with you that it is a valid bug. I was going to report it myself, until I saw that you already did.
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) latest
this worked for me in powershell
Ran into this same issue tonight. Found workarounds that might help others:
The binary does exist
It's bundled inside the VS Code extension:
Workaround
Open a new PowerShell window and
claude --versionshould work.Note: When the VS Code extension updates, you'll need to update the symlink to point to the new version folder.
Additional performance issue
Even when working, startup was slow (~1500ms vs expected ~600ms). Found two culprits:
1. Cache bloat in
~/.claude/This directory grew to 585MB silently:
2. Broken plugins
claude doctorshowed 5 plugin errors — each failed marketplace lookup adds latency:No built-in way to remove these.
Fix for performance
Result: Startup time went from ~1500ms back to ~600ms (expected baseline).
---
Would be great if:
claude cache cleancommand existedclaude doctor --fixcould remove broken pluginsAnother workaround:
This certainly appears to be a regression. I used the PowerShell install script successfully on a different machine a few months ago (around September), but it is now failing on a new machine I'm trying.
Windows Native Installation Fix Workaround
Quick Fix (PowerShell) - No Download Needed
Full Installer Script
View source on GitHub Gist
PowerShell
Bash / Git Bash / Cygwin
Why It Works
The
latestargument bypasses the version-check bug inclaude.exe install(#14942).Root cause: The installer checks if
runningVersion == targetVersionand skips copying the binary - but doesn't verify the target file actually exists.What The Script Does
claude.exe install latest(bypasses the bug)Requirements
thank you!
This is work for me:
winget install --id Anthropic.ClaudeCodeall these workarounds may work, but there is still an issue with the command that is highlighted on the main page of claude code, which most people will try... Is this even something we can fix here, or does Anthropic need to do it on their end?
Thats my question also .the amount of bug they will get as codebase grows is Inconceivable. This will take too much time to solve . I think they would opensource it if the time were bad .
Working on this and should have a fix out for folks soon. Sorry for the delay here!
I'm surprised you don't have CI/CD that tests this before release.
It sounds like this is being addressed, but I can confirm this issue. Stepping through the script, the issue seems to be with the actual install executable (I'm sure someone smarter than me can explain why this installation method is beneficial, but I'm not really sure why we need a script that boils down to 'download claude-2.0.67-win32-x64.exe, then run the exe with the argument "install stable"').
The script pulls the installer just fine, and the installer happily reports success... but with the warning that claude.exe doesn't exist. And, well, I think you need that.
Workaround: download an installer that is not 2.0.67. The script (currently) pulls https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.0.67/win32-x64/claude.exe
I grabbed the latest version instead, ran it with "install stable", it worked a treat (and installed version 2.0.67), from here: https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.0.74/win32-x64/claude.exe
This should be fixed as of
2.1.0.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.