[BUG] Native install create zero bytes claude.exe

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Oct 10, 2025 · closed Jan 22, 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?

When I try to install:

PS C:\Windows\System32> irm https://claude.ai/install.ps1 | iex
Setting up Claude Code...

✔ Claude Code successfully installed!

  Version: 2.0.13

  Location: C:\Users\Maxence\.local\bin\claude.exe


  Next: Run claude --help to get started

✅ Installation complete!

PS C:\Windows\System32> Get-ChildItem -Path "C:\Users\Maxence\.local\bin\claude.exe"

    Directory: C:\Users\Maxence\.local\bin

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          10/10/2025    09:24              0 claude.exe

What Should Happen?

The PowerShell script should have updated claude.exe, but it create a zero length file.

Error Messages/Logs

Steps to Reproduce

Just run the install command line on a Windows platform

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.13

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

7 Comments

github-actions[bot] · 1 year ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/9238

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

moorerad · 1 year ago

Similar thing happened to me at work this morning when i ran claude upgrade in PowerShell. I had to rerun the PS install to fix it

vintagedave · 10 months ago

I'm seeing this where it is not creating the final claude.exe at all (not 0KB, just not present.) Installation reports success.

github-actions[bot] · 9 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

meesp123 · 9 months ago

& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) latest

this worked for me in powershell

github-actions[bot] · 8 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 8 months ago

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.