[BUG] `claude update` on Windows downloads wrong platform binary — CLI completely broken after upgrading to 2.1.114**

Status Fixed / completed
Reported on v2.1.112
Maintainer reply None cached
Activity 6 comments · opened Apr 20, 2026 · closed Apr 20, 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?

After running claude update to upgrade from version 2.1.112 to 2.1.114, the claude.exe binary became corrupted or was replaced with an incompatible binary. The CLI completely stops working — even claude update itself fails. Windows reports that the executable is not a valid application for this OS platform. Additionally, Windows shows a popup dialog saying:

"Unsupported 16-bit Application — This program or feature '\??\C:\Users\Administrator\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\bin\claude.exe' cannot start or run due to incompatibility with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available."

This suggests the claude.exe binary downloaded during the update is either a corrupted file, a 16-bit binary, or a binary built for a non-Windows platform (e.g., Linux ELF). Reinstalling via npm uninstall -g + npm install -g does NOT fix the issue — the same broken binary is downloaded from the registry.

What Should Happen?

The claude update command should download the correct platform-specific binary (Windows x64) and the CLI should continue to work after the update.

Error Messages/Logs

ResourceUnavailable: C:\Users\Administrator\AppData\Roaming\npm\claude.ps1:14
Line |
  14 |    & "$basedir/node_modules/@anthropic-ai/claude-code/bin/claude.exe"  …
     |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Program 'claude.exe' failed to run: An error occurred trying to start process
     | 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\bin\claude.exe' with working directory 'E:\workspace\PPQ'. The
     | specified executable is not a valid application for this OS platform.At C:\Users\Administrator\AppData\Roaming\npm\claude.ps1:14 char:3 +   &
     | "$basedir/node_modules/@anthropic-ai/claude-code/bin/claude.exe"  … +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.


Windows popup dialog:

Unsupported 16-bit Application
The program or feature "\??\C:\Users\Administrator\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\bin\claude.exe" cannot start or run due to incompatibility with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

Steps to Reproduce

  1. Have Claude Code installed globally on Windows 10/11 (x64) at version 2.1.112
  2. Run claude update in PowerShell
  3. Update completes successfully, upgrading from 2.1.112 → 2.1.114
  4. Run claude — it fails with the error above
  5. Run claude update — same error (cannot self-repair)
  6. Try clean reinstall:

``powershell
npm uninstall -g @anthropic-ai/claude-code
npm cache clean --force
npm install -g @anthropic-ai/claude-code
``

  1. Run claude — still the same error

Environment

  • Node.js architecture: x64 (node -p "process.arch"x64)
  • OS: Windows (64-bit)
  • Shell: PowerShell
  • Claude Model: N/A (cannot launch CLI to check)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

Cannot run claude --version — the CLI is broken. Last known version before update: 2.1.112. Attempted update target: 2.1.114.

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

The fact that Windows detects claude.exe as a "16-bit application" is likely a generic error message — what's probably happening is the binary is for a different platform entirely (e.g., Linux x64 ELF binary), and Windows misidentifies it. This points to a bug in the update mechanism that downloads the wrong platform's binary during claude update on Windows. The npm registry package may also be shipping the wrong binary for the win32-x64 platform.

View original on GitHub ↗

6 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/50792
  2. https://github.com/anthropics/claude-code/issues/48827
  3. https://github.com/anthropics/claude-code/issues/9418

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

0xbrainkid · 4 months ago

This is an especially damaging updater failure because it destroys the very tool users would need to recover. Once claude update installs the wrong binary and the CLI no longer launches, the normal repair path collapses with it.

The Windows "Unsupported 16-bit Application" message strongly suggests a packaging/distribution mix-up rather than a user-environment problem. If reinstalling via npm pulls the same bad artifact, then the failure is likely upstream in the published package or binary selection logic, not local corruption.

That makes this higher-severity than an ordinary upgrade regression:

  • update path triggers the break
  • the broken binary blocks the CLI entirely
  • the self-update mechanism can no longer help
  • reinstall repeats the failure

So the product is effectively bricking itself through its own delivery channel.

This is exactly the kind of issue where platform-appropriate artifact verification and clearer release gating matter. Update systems are part of the trust contract. If users cannot trust that upgrading preserves a working binary for their platform, they become rationally afraid to update at all.

konkong · 4 months ago

Downgrading to 2.1.112 works, but the auto-update mechanism forces an upgrade back to the broken version on every launch.

LightYear512 · 4 months ago

I found a way to upgrade claude code on windows:

  1. use "npm uninstall -g @anthropic-ai/claude-code" to uninstall claude code fully
  2. change an another npm registry
  3. reinstall latest claude use npm

I don`t konw why but it works....

konkong · 4 months ago

Root cause confirmed: the issue is with the npm mirror registry https://registry.npmmirror.com, which serves a corrupted/wrong-platform binary for version 2.1.114.

Switching to the official npm registry (https://registry.npmjs.org/) and reinstalling resolves the issue completely:

npm uninstall -g @anthropic-ai/claude-code
npm config set registry https://registry.npmjs.org/
npm install -g @anthropic-ai/claude-code
github-actions[bot] · 4 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.