claude-code - 💡(How to fix) Fix [BUG] npm install broken on non-AVX Linux x64 CPUs since v2.1.113 — Node.js (cli.js) fallback removed [1 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#51976Fetched 2026-04-23 07:39:52
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×6

Error Message

Error Messages/Logs

Root Cause

Related issues: #50270 (same root cause, affects Termux/Android), #33153 (no-AVX Bun crash, open since 2.1.85+)

Code Example

Bun v1.3.13 (6db6c97b) Linux x64 (baseline)
  Linux Kernel v6.12.57 | glibc v2.41
  Features: jsc no_avx2 no_avx standalone_executable claude_code
  CPU lacks AVX support. Please consider upgrading to a newer CPU.
  panic(main thread): Segmentation fault at address 0x243B0C00000
  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?

Since v2.1.113, npm install -g @anthropic-ai/claude-code installs a Bun standalone binary (bin/claude.exe) that crashes immediately on Linux x64 CPUs without AVX support. Prior to v2.1.113, the package shipped cli.js with a #!/usr/bin/env node shebang which ran on the system's existing Node.js — no Bun required. That file has been removed.

What Should Happen?

Claude should launch successfully on non-AVX Linux x64 CPUs when installed via npm. Either the Node.js-compatible cli.js entrypoint should be restored as a fallback, or a Bun baseline build that genuinely supports non-AVX CPUs should be shipped.

Error Messages/Logs

Bun v1.3.13 (6db6c97b) Linux x64 (baseline)
  Linux Kernel v6.12.57 | glibc v2.41
  Features: jsc no_avx2 no_avx standalone_executable claude_code
  CPU lacks AVX support. Please consider upgrading to a newer CPU.
  panic(main thread): Segmentation fault at address 0x243B0C00000
  oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Steps to Reproduce

  1. Have a Linux x64 machine/VM without AVX CPU support
  2. Install Node.js 20.x
  3. Run npm install -g @anthropic-ai/claude-code (installs v2.1.113+)
  4. Run claude
  5. Bun segfaults immediately

Pinning to npm install -g @anthropic-ai/[email protected] (last version with cli.js) works correctly.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

2.1.117 (latest at time of filing)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Non-interactive/CI environment

Additional Information

The linux-x64 optional package (@anthropic-ai/claude-code-linux-x64) was first introduced in v2.1.110 but cli.js was retained until v2.1.112. v2.1.113 is the exact version where cli.js was dropped and the bin entry switched to bin/claude.exe.

The Bun binary correctly identifies itself as a baseline build (no_avx2 no_avx) but still segfaults — this appears to be a regression in Bun 1.3.x where even the baseline standalone executable crashes on truly AVX-less CPUs.

Related issues: #50270 (same root cause, affects Termux/Android), #33153 (no-AVX Bun crash, open since 2.1.85+)

extent analysis

TL;DR

The issue can be worked around by pinning the @anthropic-ai/claude-code version to 2.1.112 which still includes the cli.js entrypoint that runs on the system's existing Node.js.

Guidance

  • The root cause appears to be a regression in Bun 1.3.x where the baseline standalone executable crashes on CPUs without AVX support, despite being labeled as no_avx2 and no_avx.
  • To verify the issue, run the steps to reproduce provided in the issue body, which involves installing @anthropic-ai/claude-code version 2.1.113 or later and running claude on a Linux x64 machine without AVX CPU support.
  • As a temporary workaround, pin the @anthropic-ai/claude-code version to 2.1.112 using npm install -g @anthropic-ai/[email protected], which should allow claude to launch successfully.
  • The long-term solution would involve either restoring the cli.js entrypoint as a fallback or shipping a Bun baseline build that genuinely supports non-AVX CPUs.

Notes

The issue is specific to Linux x64 CPUs without AVX support and only affects versions 2.1.113 and later of @anthropic-ai/claude-code. The workaround provided may not be suitable for all use cases, especially those that require the latest version of @anthropic-ai/claude-code.

Recommendation

Apply the workaround by pinning the @anthropic-ai/claude-code version to 2.1.112 until a fixed version is released, as this allows claude to launch successfully on non-AVX Linux x64 CPUs.

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

claude-code - 💡(How to fix) Fix [BUG] npm install broken on non-AVX Linux x64 CPUs since v2.1.113 — Node.js (cli.js) fallback removed [1 participants]