Skip to content

[BUG] Powershell Native Install does not copy claude.exe #16041

Description

@peteralieber

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions