[BUG] NPM install on MacOS fetches claude.exe windoes version

Open 💬 1 comment Opened Jul 2, 2026 by cristiani

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?

npm cache clean --force
npm warn using --force Recommended protections disabled.
rm -rf ~/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code
rm -f ~/.nvm/versions/node/v22.14.0/bin/claude
npm install -g @anthropic-ai/claude-code --force --os=darwin --cpu=x64
npm warn using --force Recommended protections disabled.
added 2 packages in 5s
hash -r
ls -l ~/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/bin/
total 492152
-rwxr-xr-x 2 cristian staff 238706000 Jul 2 23:00 claude.exe

What Should Happen?

install macos version

Error Messages/Logs

Steps to Reproduce

See the commands above

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.22 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗