Skip to main content

Claude Code "This App Can't Run on Your PC" Windows Error Fix

Claude Code's update mechanism creates a 0-byte claude.exe file while renaming the working executable to a backup filename. Windows can't run the 0-byte file.



The Bug

Update process renames working claude.exe to backup name, then creates new claude.exe that ends up 0 bytes. Happens on /exit command.


Fix

  1. Navigate to %USERPROFILE%\.claude\bin\
  2. Delete the 0-byte claude.exe
  3. Rename the backup file (e.g., claude.exe.old) to claude.exe

Commands: cd %USERPROFILE%\.claude\bin\del claude.exeren claude.exe.old claude.exe

Bug repeats on next /exit.


Alternative: VS Code Extension

Install Claude Code VS Code extension to avoid this bug entirely.

  1. Download VS Code from code.visualstudio.com
  2. Install Claude Code extension (Ctrl+Shift+X → Search "Claude Code")
  3. Authenticate with your Anthropic account

Same functionality, no update bugs.


See Also: Troubleshooting Guide|Is Claude Down|VS Code Extension Setup