claude-code - 💡(How to fix) Fix [BUG] Possible Windows binary incompatibility in 2.1.113 (claude.exe fails to run) [5 comments, 5 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50792Fetched 2026-04-20 12:12:54
View on GitHub
Comments
5
Participants
5
Timeline
12
Reactions
0
Timeline (top)
commented ×5labeled ×5cross-referenced ×1subscribed ×1

After installing @anthropic-ai/[email protected], I encountered a Windows compatibility error when running the claude command.

The error message indicates that the executable is not compatible with my Windows version.

Version 2.1.112 works correctly, but after updating (or opening a new terminal), it seems to switch to the newer version and fails.

Error Message

After installing @anthropic-ai/[email protected], I encountered a Windows compatibility error when running the claude command. The error message indicates that the executable is not compatible with my Windows version.

Error Messages/Logs

  1. Run claude again → shows compatibility error

Root Cause

After installing @anthropic-ai/[email protected], I encountered a Windows compatibility error when running the claude command.

The error message indicates that the executable is not compatible with my Windows version.

Version 2.1.112 works correctly, but after updating (or opening a new terminal), it seems to switch to the newer version and fails.

Code Example

C:\Users\xxxx>claude
This version of D:\nodejs\node_global\node_modules@anthropic-ai\claude-code\bin\claude.exe is not compatible with the version of Windows you're running. Check your computer's system information and contact the software publisher.
RAW_BUFFERClick to expand / collapse

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?

Description

After installing @anthropic-ai/[email protected], I encountered a Windows compatibility error when running the claude command.

The error message indicates that the executable is not compatible with my Windows version.

Version 2.1.112 works correctly, but after updating (or opening a new terminal), it seems to switch to the newer version and fails.

What Should Happen?

The CLI should run normally on Windows (same as version 2.1.112).

Error Messages/Logs

C:\Users\xxxx>claude
This version of D:\nodejs\node_global\node_modules@anthropic-ai\claude-code\bin\claude.exe is not compatible with the version of Windows you're running. Check your computer's system information and contact the software publisher.

Steps to Reproduce

  1. Install version 2.1.112:
      npm install -g @anthropic-ai/[email protected]
  2. Run claude → works fine
  3. Open a new terminal or update to 2.1.113
  4. Run claude again → shows compatibility error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

2.1.114

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

It appears that the claude.exe binary included in version 2.1.113 may not be compatible with this Windows environment.

Possible causes might include:

Incorrect build target (e.g., architecture mismatch) Packaging or bundling issue Dependency/runtime mismatch

Since version 2.1.112 works correctly under the same environment, this seems to be a regression introduced in 2.1.113.

Please let me know if I can provide additional logs or help test a fix.

extent analysis

TL;DR

Downgrade to version 2.1.112 to avoid the Windows compatibility error with the claude command.

Guidance

  • Verify that the issue is indeed caused by the update to version 2.1.113 by reinstalling version 2.1.112 and checking if the claude command works as expected.
  • Check the system information and Windows version to ensure it matches the requirements for the claude-code package.
  • Consider providing additional logs or details about the Windows environment to help the developers identify the root cause of the compatibility issue.
  • If possible, test the claude command in a different Windows environment or version to see if the issue is specific to the current setup.

Example

No code snippet is provided as the issue seems to be related to the binary compatibility rather than a code-specific problem.

Notes

The issue appears to be a regression introduced in version 2.1.113, and downgrading to version 2.1.112 seems to be a temporary workaround. However, it is essential to investigate the root cause of the compatibility issue to ensure a proper fix.

Recommendation

Apply workaround: Downgrade to version 2.1.112, as it is the last known working version, and wait for a fix or update that addresses the compatibility issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING