[BUG] When I run npm install on WSL1, claude.exe gets installed
Status Closed — not planned
Reported on v2.1.112
Maintainer reply None cached
Activity 4 comments · opened May 3, 2026 · closed Jun 2, 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?
When I run npm install @anthropic-ai/claude-code to update to the latest version, @anthropic-ai/claude-code/bin/claude.exe gets installed. In a WSL1 environment, claude.exe cannot be launched.
Up to version 2.1.112, the Linux version of claude was installed correctly.
What Should Happen?
The Linux version of claude is installed
Error Messages/Logs
Steps to Reproduce
- Install
@anthropic-ai/claude-code. - Run
claude. - The following error appears: "Could not execute command."
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.112 (Claude Code)
Claude Code Version
2.1.126 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗