[BUG] Install silently fails on Windows 11 25H2
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?
Here's a summary for the bug report:
Bug Report: Windows PowerShell Installer Fails Silently
Environment:
- OS: Windows 11
- Installation Method: PowerShell (
irm https://claude.ai/install.ps1 | iex) - Claude Code Version: 2.0.67
Issue:
The PowerShell installer reports successful installation but fails to actually create the claude.exe file in the target directory.
Steps to Reproduce:
- Run PowerShell as Administrator
- Execute:
irm https://claude.ai/install.ps1 | iex - Installation completes with success message:
✔ Claude Code successfully installed! Location: C:\Users\[user]\.local\bin\claude.exe - Check the directory:
Test-Path "$env:USERPROFILE\.local\bin\claude.exe"returnsFalse
Expected Behavior:
The claude.exe file should be copied to C:\Users\[user]\.local\bin\claude.exe
Actual Behavior:
- The
.local\bindirectory is created successfully - The installer reports success and shows the correct installation path
- Warning message appears: "installMethod is native, but claude command not found at C:\Users\[user]\.local\bin\claude.exe"
- The
claude.exefile is never actually copied to the destination - The
claude.exe install stablesubcommand fails silently to copy itself
Root Cause:
The installer downloads claude.exe to a temporary location, runs claude.exe install stable, which reports success but fails to copy the executable to the final destination.
Workaround:
Manually copy the downloaded installer to the destination:
Copy-Item -Path $downloadPath -Destination "$env:USERPROFILE\.local\bin\claude.exe" -Force
Additional Notes:
- No errors appear in verbose mode
- No antivirus/Windows Defender blocks detected
- Issue occurs even when running as Administrator
What Should Happen?
Should install correctly
Error Messages/Logs
⚠ Setup notes:
• installMethod is native, but claude command not found at C:\Users\savov\.local\bin\claude.exe
Steps to Reproduce
irm https://claude.ai/install.ps1 | iex
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.67
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗