[BUG] Bun crashes with "CPU lacks AVX support. Please consider upgrading to a newer CPU."
Status Closed — duplicate
Reported on v2.1.15
Maintainer reply ✓ Yes — ant-kurt
Workaround ✓ Mentioned in thread ↓
Activity 14 comments · opened Jan 21, 2026 · closed Jan 22, 2026
💡 Likely answer: A maintainer (ant-kurt, collaborator)
responded on this thread — see the highlighted reply below.
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?
Bun crashes with error "CPU lacks AVX support. Please consider upgrading to a newer CPU when I run claude or the claude installer.
What Should Happen?
Claude should launch and allow me to prompt as normal
Error Messages/Logs
Setting up Claude Code...
Setting up launcher and shell integration...
============================================================
Bun v1.3.6 (d530ed99) Linux x64 (baseline)
Linux Kernel v6.1.0 | glibc v2.36
CPU: sse42 popcnt
Args: "/home/seeg/.claude/downloads/claude-2.1.15-linux-x64" "install"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(23) jsc no_avx2 no_avx spawn(7) standalone_executable
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:domain" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:querystring" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node-fetch" "node:inspector" "node:http2" "node:diagnostics_channel"
Elapsed: 3524ms | User: 1592ms | Sys: 497ms
RSS: 1.21GB | Peak: 0.48GB | Commit: 1.21GB | Faults: 0 | Machine: 16.77GB
CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Illegal instruction at address 0x4001FB4
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.3.6/B_1d530ed9GugogigD+kgP__s1nggEs1nggE____wyo1/D________msnt/DwujpiFA3Ao7vggE
bash: line 142: 752435 Illegal instruction "$binary_path" install ${TARGET:+"$TARGET"}
Steps to Reproduce
- run
claude
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.5
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
Proxmox VM (Debian) x86 host CPU
14 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
❯ claude
============================================================
Bun v1.3.6 (d530ed99) Linux x64 (baseline)
Linux Kernel v6.18.5 | glibc v2.42
Args: "claude"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(20) jsc no_avx2 no_avx spawn(20) standalone_executable
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:domain" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:querystring" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node-fetch" "node:inspector" "node:http2" "node:diagnostics_channel"
Elapsed: 935ms | User: 812ms | Sys: 145ms
RSS: 1.20GB | Peak: 0.43GB | Commit: 1.20GB | Faults: 0 | Machine: 8.31GB
CPU lacks AVX support. Please consider upgrading to a newer CPU.
panic(main thread): Illegal instruction at address 0x4001FB4
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
I'm seeing the same problem, where claude was working fine earlier today.
Please stop using claude code for generating claude code.
Technical Details:
Why This Happens in VMs:
qemu64orkvm64only expose baseline x86-64 instructions-cpu host)SandyBridge,Haswell, or newer)Resolution / Workaround
For Proxmox/QEMU users:
qm set <vmid> -cpu hostFor other hypervisors:
Verified Working: After changing the CPU type to
host, Claude Code 2.1.15 launches successfully.Check AVX availability:
Same issue here - VPS users completely locked out
I'm experiencing the exact same crash on my VPS (Debian, Linux Kernel 6.1.0). Claude Code worked fine until yesterday, then after an automatic update it stopped working entirely.
The problem is: I cannot upgrade the CPU. This is a hosted VPS where I have no control over the hypervisor or CPU type. Many VPS providers use older Xeon generations or don't expose AVX instructions to guests.
This effectively locks out a significant portion of users who:
Suggested fix:
Please provide a baseline build without AVX dependency, similar to what Bun offers (bun-linux-x64-baseline). AVX should be an optimization, not a hard requirement.
This is a regression that broke a previously working setup overnight. Would appreciate a quick fix or at least a way to pin to an older working version.
Thanks @ul0gic I'll try these steps and report back.
Same issue here on v2.1.15. Rolled back to 2.1.14 and working again.
Hope this bug gets fixed in Bun.
I resolved this issue by downgrading to v2.1.14. Installation instructions for specific versions can be found here: https://code.claude.com/docs/en/getting-started
This worked for me. Proxmox user here. Thanks @ul0gic
Workaround for "CPU lacks AVX support" crash on Proxmox VMs
For users running Claude Code on Proxmox VMs with CPU type
kvm64(or similar virtual CPUs without AVX support), changing the CPU type tohostor another AVX-capable type is not always an option — especially when VM portability across different Proxmox hosts is required.1. Downgrade Claude Code via npm (version 2.1.11)
The npm installation does not use Bun and therefore has no AVX requirement:
Verify the installation:
To prevent auto-updates, add to
~/.claude/settings.json:2. Downgrade VS Code Extension
The VS Code extension also needs to be downgraded:
This combination works on Proxmox VMs without AVX support.
See also #20019
The dame problem here, Linux runing under Oracle vm
Consolidating onto #19907
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.