claude-code
claude-code copied to clipboard
[Bug] Upgrade Fails: Zero-Byte Executable Replaces Existing Binary
Bug Description upgrade not working - claude seems to replace itself in folder C:\Users[username].local\bin by a file with 0 bytes.
Environment Info
- Platform: win32
- Terminal: pycharm
- Version: 2.0.13
- Feedback ID: 0d9e9aaa-3c2a-43f1-801a-3b38fa97ed72
Errors
[{"error":"Error\n at gXG (B:/~BUN/root/claude.exe:511:37285)\n at gXG (B:/~BUN/root/claude.exe:511:37972)\n at $e9 (B:/~BUN/root/claude.exe:512:4097)\n at $e9 (B:/~BUN/root/claude.exe:512:4162)\n at Ie9 (B:/~BUN/root/claude.exe:512:1612)\n at Ie9 (B:/~BUN/root/claude.exe:512:1919)\n at <anonymous> (B:/~BUN/root/claude.exe:513:2848)\n at <anonymous> (B:/~BUN/root/claude.exe:513:3043)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2025-10-12T18:17:22.557Z"}]
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/9281
- https://github.com/anthropics/claude-code/issues/9418
- 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
Well, #9238 describes a work-around, but not a real fix
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.