[BUG]

Resolved 💬 16 comments Opened Apr 18, 2026 by zorrooooooo Closed Jun 23, 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?

use in Windows10 22H2.
in command line:该版本的 C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code\bin\claude.exe 与你运行的 Windows 版本不兼容。请查看计算机的系统信息,然后联系软件发布者。
dialog:不支持的 16位应用程序 由于与64位的windows 不兼容。此程序或功能\??\C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code\bin\claude.exe 与你运行的 Windows 版本不兼容。请查看计算机的系统信息,然后联系软件发布者。

What Should Happen?

in command line : C:\Users\CN090535>claude

Error Messages/Logs

该版本的 C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code\bin\claude.exe 与你运行的 Windows 版本不兼容。请查看计算机的系统信息,然后联系软件发布者。

Steps to Reproduce

no I dont konw how to Reproduce. I just /exit and at the same time Ctrl+C .

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.114

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

<img width="450" height="123" alt="Image" src="https://github.com/user-attachments/assets/4f455870-5ed7-4ccd-be64-edfbc6a45d1a" />

View original on GitHub ↗

16 Comments

dragonwt · 2 months ago

me too,It's very strange

dragonwt · 2 months ago

I found the resolve way,reinstall with npm install -g @anthropic-ai/claude-code --registry=https://registry.npmjs.org/ --foreground-scripts

qianfree · 2 months ago

I also experienced a situation where I was using it normally in the morning, but suddenly couldn't use it in the afternoon!

qianfree · 2 months ago
I found the resolve way,reinstall with npm install -g @anthropic-ai/claude-code --registry=https://registry.npmjs.org/ --foreground-scripts

This method is not effective

DURUII · 2 months ago

same here😠

hasibagen · 2 months ago
> I found the resolve way,reinstall with npm install -g @anthropic-ai/claude-code --registry=https://registry.npmjs.org/ --foreground-scripts This method is not effective

use old version eg 2.1.98

tk-charlie · 2 months ago

<img width="1097" height="301" alt="Image" src="https://github.com/user-attachments/assets/59afea9e-f178-480d-a0b9-234e2f2fa24f" />

I found the resolve way,reinstall with npm install -g @anthropic-ai/claude-code --registry=https://registry.npmjs.org/ --foreground-scripts

This method is effective,but my colleague not effective.

tk-charlie · 2 months ago

<img width="321" height="107" alt="Image" src="https://github.com/user-attachments/assets/c57afc4a-e813-409c-a467-72086cb1416e" />
my npm version

jiushaba · 2 months ago

我也是莫名其妙不行了

Heapfiy · 2 months ago
<img alt="图像" width="1097" height="301" src="https://private-user-images.githubusercontent.com/197344883/580379455-59afea9e-f178-480d-a0b9-234e2f2fa24f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzY2NjYzMzQsIm5iZiI6MTc3NjY2NjAzNCwicGF0aCI6Ii8xOTczNDQ4ODMvNTgwMzc5NDU1LTU5YWZlYTllLWYxNzgtNDgwZC1hMGI5LTIzNGUyZjJmYTI0Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQyMFQwNjIwMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNmZkMWEzMWFkNTRhMjdlYzQ0NjYzYzgwOGYzOWNmOWMwMzBmZjkwODZlMzEyYTY3Nzc2ZGVjYTVhMGExZTBmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.nf85u-8Lj2ekdHVj4KlNpVPkCjqvyb-nou-a6NDw-SU"> 我找到了解决方法,使用以下命令重新安装:npm install -g @anthropic-ai/claude-code --registry= https://registry.npmjs.org/ --foreground-scripts 这种方法有效,但我同事的方法无效。

使用:npm install -g @anthropic-ai/claude-code --registry= https://registry.npmjs.org/ --foreground-scripts,可以解决。

我的版本如下:node(v24.14.1),npm(11.11.0)

Heapfiy · 2 months ago

注意上面的 --registry= 的后面,贴出来自己加了个空格,执行时手动去掉

YauKong · 2 months ago

一些镜像源应该是有分发包错误的问题,尝试更换npm源然后重新安装,
npm config set registry [你的镜像源地址]
也可以尝试
npm install -g @anthropic-ai/claude-code@2.1.110 --os=win32 --cpu=x64

speicec · 2 months ago

应该是版本问题,可以尝试安装老一点的版本,npm install -g @anthropic-ai/claude-code@2.1.110

<img width="1226" height="537" alt="Image" src="https://github.com/user-attachments/assets/d2e6d655-bde1-4121-8e13-7a4281cdf2bb" />

nanguogu · 1 month ago
npm install -g @anthropic-ai/claude-code@2.1.110 --os=win32 --cpu=x64

This solution is effective

github-actions[bot] · 23 days ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

illusionno · 20 days ago
I found the resolve way,reinstall with npm install -g @anthropic-ai/claude-code --registry=https://registry.npmjs.org/ --foreground-scripts

resolved!!