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

Resolved 💬 2 comments Opened Apr 3, 2026 by AoRohan Closed May 26, 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

Install Claude Code via: irm https://claude.ai/install.ps1 | iex
Open a new PowerShell terminal
Run: claude
Bun's help menu appears instead of Claude Code
Run: & "$env:USERPROFILE.local\bin\claude.exe"
Same result — Bun's help menu
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/46293cab-b942-4c80-bc0f-2fe0eadd2944" />

<img width="1224" height="468" alt="Image" src="https://github.com/user-attachments/assets/869fc327-ca80-4b04-aa8c-edab2abb23c9" />

View original on GitHub ↗

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