[BUG] When I run npm install on WSL1, claude.exe gets installed

Resolved 💬 3 comments Opened May 3, 2026 by yanoryuichi 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

  1. Install @anthropic-ai/claude-code.
  2. Run claude.
  3. 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_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗