[BUG] claude.exe launches Bun instead of Claude Code on Windows after native installer

Resolved 💬 3 comments Opened Mar 29, 2026 by AoRohan Closed Apr 3, 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?

After installing Claude Code via the official native installer (irm https://claude.ai/install.ps1 | iex), running claude in PowerShell opens Bun's help menu instead of Claude Code. This happens even when calling the full path directly: & "$env:USERPROFILE\.local\bin\claude.exe". Running claude --version returns 1.3.11 (a Bun version number), while the file metadata of claude.exe correctly shows version 2.1.87.0.

What Should Happen?

Running claude or the full path to claude.exe should launch Claude Code, not Bun.

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Code via: irm https://claude.ai/install.ps1 | iex
  2. Open a new PowerShell terminal
  3. Run: claude
  4. Bun's help menu appears instead of Claude Code
  5. Run: & "$env:USERPROFILE\.local\bin\claude.exe"
  6. Same result — Bun's help menu
  7. Run: claude --version → returns 1.3.11 (Bun version)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.87 (from file metadata) / 1.3.11 (from --version output)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

<img width="1171" height="765" alt="Image" src="https://github.com/user-attachments/assets/afb28b85-5dcb-4665-9732-1cf9ed71434d" />

<img width="1224" height="468" alt="Image" src="https://github.com/user-attachments/assets/b310b3f4-5cb9-46a8-b322-9f88696013b8" />

View original on GitHub ↗

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