claude-code - 💡(How to fix) Fix [BUG] npm install now ships Bun binary (v2.1.126) — npm workaround for non-AVX VPS is dead, no upgrade path [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55520Fetched 2026-05-03 04:51:14
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

As of version 2.1.x, npm install -g @anthropic-ai/claude-code ships a Bun ELF binary (claude.exe) instead of a Node.js-based entry point. This means the npm installation path — the documented workaround for non-AVX environments — no longer works.

I am a paying subscriber using Claude Code professionally for server administration and development across multiple dedicated servers and VPS instances (OpenStack, Proxmox KVM). I was forced to downgrade to version 2.0.62, which is the last version that actually runs on Node.js. I am now frozen on an outdated version with no upgrade path.

Previous issues (#19904, #19967, #19981, #20611) all recommended npm install as the workaround. That workaround is now dead.

Code Example

============================================================
Bun v1.3.14 (0a466a11) Linux x64 (baseline)
Linux Kernel v6.1.0 | glibc v2.36

Args: "claude" "--resume"
Features: jsc no_avx2 no_avx standalone_executable claude_code
Builtins: "bun:main"

Elapsed: 7956ms | User: 6200ms | Sys: 1758ms
RSS: 4.56GB | Peak: 4.03GB | Commit: 4.56GB

CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Segmentation fault at address 0x3063D000000
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

As of version 2.1.x, npm install -g @anthropic-ai/claude-code ships a Bun ELF binary (claude.exe) instead of a Node.js-based entry point. This means the npm installation path — the documented workaround for non-AVX environments — no longer works.

I am a paying subscriber using Claude Code professionally for server administration and development across multiple dedicated servers and VPS instances (OpenStack, Proxmox KVM). I was forced to downgrade to version 2.0.62, which is the last version that actually runs on Node.js. I am now frozen on an outdated version with no upgrade path.

This affects all common virtualized environments: OpenStack, Proxmox KVM, Docker, LXC — any platform where AVX is not exposed to guests, which is the default for the vast majority of VPS providers and hypervisors worldwide.

Previous issues (#19904, #19967, #19981, #20611) all recommended npm install as the workaround. That workaround is now dead.

Bun itself publishes baseline builds without AVX dependency. The fix is straightforward.

What Should Happen?

One of the following:

  1. npm install -g @anthropic-ai/claude-code should install a version that runs on Node.js (as it did up to v2.0.62), OR
  2. The shipped Bun binary should be a baseline build without AVX dependency (Bun officially provides these), OR
  3. Runtime CPU detection should select the appropriate binary automatically

Users on virtualized infrastructure should not be locked out of updates. "Upgrade your CPU" is not actionable for VPS customers.

Error Messages/Logs

============================================================
Bun v1.3.14 (0a466a11) Linux x64 (baseline)
Linux Kernel v6.1.0 | glibc v2.36

Args: "claude" "--resume"
Features: jsc no_avx2 no_avx standalone_executable claude_code
Builtins: "bun:main"

Elapsed: 7956ms | User: 6200ms | Sys: 1758ms
RSS: 4.56GB | Peak: 4.03GB | Commit: 4.56GB

CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Segmentation fault at address 0x3063D000000
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Steps to Reproduce

  1. Use any Linux VPS or VM where AVX is not available (OpenStack, Proxmox with default kvm64 CPU type, Docker, LXC — this is the default for most virtualized environments)
  2. Install Node.js 18+ via nvm
  3. Run: npm install -g @anthropic-ai/claude-code (installs v2.1.126)
  4. Verify the binary: file $(which claude) → shows ELF binary (Bun), not a Node.js script
  5. Run: claude --version → Segmentation fault / SIGILL

Workaround: npm install -g @anthropic-ai/[email protected] — last version using Node.js runtime. But this locks the user out of all updates.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

2.0.62

Claude Code Version

2.1.126 (crashes) / 2.0.62 (works)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Impact: I use Claude Code daily across multiple production servers for Laravel development, server administration, email infrastructure, and database operations. Being locked to v2.0.62 means I am paying for a product I cannot fully use.

Key facts:

  • This is not exotic hardware. The majority of VPS instances worldwide do not expose AVX.
  • OpenStack, Proxmox (default kvm64), Docker, LXC — all affected by default.
  • Bun publishes official baseline builds without AVX: https://github.com/oven-sh/bun/releases
  • Tested on Debian 12, Debian 13, Ubuntu 22.04, Ubuntu 24.04 — same result everywhere.
  • The npm package at v2.1.126 contains bin/claude.exe which is a Bun ELF binary, not a Node.js entry point.
  • DISABLE_AUTOUPDATER=1 is required to prevent auto-update back to the broken version.

Related issues: #19904, #19967, #19981, #20611, #18423

extent analysis

TL;DR

The issue can be resolved by using a Bun binary without AVX dependency or by installing an older version of Claude Code that uses Node.js runtime.

Guidance

  • The problem arises from the new Bun ELF binary in version 2.1.x, which requires AVX support, not available in most virtualized environments.
  • To verify the issue, check the binary type of the installed claude command using file $(which claude), which should indicate an ELF binary.
  • As a temporary workaround, install an older version of Claude Code using npm install -g @anthropic-ai/[email protected], which uses the Node.js runtime and does not require AVX support.
  • Consider using a baseline build of Bun without AVX dependency, as officially provided by Bun, to resolve the issue.

Example

No code snippet is necessary for this issue, as it involves binary compatibility rather than code changes.

Notes

The provided workaround locks the user out of updates, so a more permanent solution involving a Bun binary without AVX dependency or runtime CPU detection is necessary for long-term use.

Recommendation

Apply the workaround by installing the older version (npm install -g @anthropic-ai/[email protected]) until a version with a Bun binary without AVX dependency or proper runtime detection is available, to ensure compatibility with virtualized environments lacking AVX support.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING