[BUG] Powershell Native Install does not copy claude.exe
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 I ran the script, it created a bunch of files in .local/ and .claude/, but not claude.exe anywhere.
What Should Happen?
The script should install the latest version of claude.exe
Error Messages/Logs
PS C:\Users\peter> irm https://claude.ai/install.ps1 | iex
Setting up Claude Code...
✔ Claude Code successfully installed!
Version: 2.0.67
Location: C:\Users\peter\.local\bin\claude.exe
Next: Run claude --help to get started
⚠ Setup notes:
• installMethod is native, but claude command not found at C:\Users\peter\.local\bin\claude.exe
• Native installation exists but C:\Users\peter\.local\bin is not in your PATH. Add it by opening: System
Properties → Environment Variables → Edit User PATH → New → Add the path above. Then restart your terminal.
✅ Installation complete!
PS C:\Users\peter> Get-ChildItem -Recurse -Filter claude.exe $env:LOCALAPPDATA | Select-Object FullName
PS C:\Users\peter> Get-ChildItem -Recurse -Filter claude.exe $env:USERPROFILE
PS C:\Users\peter>
Steps to Reproduce
PS C:\Users\peter> irm https://claude.ai/install.ps1 | iex Setting up Claude Code...
✔ Claude Code successfully installed!
Version: 2.0.67
Location: C:\Users\peter.local\bin\claude.exe
Next: Run claude --help to get started
⚠ Setup notes: • installMethod is native, but claude command not found at C:\Users\peter.local\bin\claude.exe • Native installation exists but C:\Users\peter.local\bin is not in your PATH. Add it by opening: System Properties → Environment Variables → Edit User PATH → New → Add the path above. Then restart your terminal.
✅ Installation complete!
PS C:\Users\peter> Get-ChildItem -Recurse -Filter claude.exe $env:LOCALAPPDATA | Select-Object FullName PS C:\Users\peter> Get-ChildItem -Recurse -Filter claude.exe $env:USERPROFILE PS C:\Users\peter>
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
same as Issue 9445, but it is back at least as of 2.0.67
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/14902
- https://github.com/anthropics/claude-code/issues/15847
- https://github.com/anthropics/claude-code/issues/14942
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
@peteralieber same error here, fixed using the fix provided here:
https://github.com/anthropics/claude-code/issues/9238#issuecomment-3387782940
To apply the fix, I had to run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass to allow the local script to execute.
Can we please get an update regarding the core issue? This was quite a hassle to get Claude going locally.
Still an issue today.
Tried the above mentioned Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass but still running into issue with the exe not being copied over to the right location.
Just paid for Claude Code and it won't install too. Setting the execution policy does nothing; controlled folder access disabled.
$newPath = "C:\Users\{your username}\.local\bin"
$Path = [Environment]::GetEnvironmentVariable("PATH", "User") + ";" + $newPath
[Environment]::SetEnvironmentVariable("Path", $Path, "User")
typing this into PS helps get it into the paths. For some reason the GUI way didn't work.
Run PS as admin 🚀
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
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.