[BUG] Bun Segfault when installing Claude Code CLI
Resolved 💬 5 comments Opened Feb 16, 2026 by mennolodder Closed Mar 20, 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?
When installing Claude Code using the installation using irm https://claude.ai/install.ps1 | iex taken from the manual I get a segfault and nothing is installed.
Before running this I deleted my .claude directory.
What Should Happen?
Claude is installed and I can run 'claude' from command line.
Error Messages/Logs
PS C:\Users\ml> irm https://claude.ai/install.ps1 | iex
Setting up Claude Code...
============================================================
Bun Canary v1.3.9-canary.62 (6d2fefba) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\ml\.claude\downloads\claude-2.1.42-win32-x64.exe" "install" "latest"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc spawn(2) standalone_executable
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "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:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node:http2"
Elapsed: 1198ms | User: 546ms | Sys: 531ms
RSS: 0.37GB | Peak: 0.37GB | Commit: 0.54GB | Faults: 94693 | Machine: 33.79GB
panic(thread 39756): Segmentation fault at address 0xC8
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.9/e_26d2fefbGugogCCSntdll.dll0+iECSntdll.dlly89DCSntdll.dlly/tECYKERNEL32.DLLwvmKCaTmUmEvt64.dlls65OCaTmUmEvt64.dllw7idCaTmUmEvt64.dlluyrLCaTmUmEvt64.dll27rOCaTmUmEvt64.dll4gxOCaTmUmEvt64.dll4n5eCaTmUmEvt64.dllguxQCaTmUmEvt64.dll0ygaCWtmmon64.dlls8JCWtmmon64.dllk3rbCWtmmon64.dll2ktbCWtmmon64.dlliprmC+wmlZA2AwM
oh no: multiple threads are crashing
panic(thread 21352): Segmentation fault at address 0xCC
https://bun.report/1.3.9/e_26d2fefbGugogCCSntdll.dll0+iECSntdll.dlly89DCSntdll.dlly/tECYKERNEL32.DLLwvmKCaTmUmEvt64.dlls65OCaTmUmEvt64.dllw7idCaTmUmEvt64.dlluyrLCaTmUmEvt64.dll27rOCaTmUmEvt64.dll4gxOCaTmUmEvt64.dll4n5eCaTmUmEvt64.dllguxQCaTmUmEvt64.dll0ygaCWtmmon64.dlls8JCWtmmon64.dllk3rbCWtmmon64.dll2ktbCWtmmon64.dlliprmC+wmlZA2A4M
WARNING: Could not remove temporary file: C:\Users\ml\.claude\downloads\claude-2.1.42-win32-x64.exe
✅ Installation complete!
Steps to Reproduce
On Windos 11, in powershell run: irm https://claude.ai/install.ps1 | iex
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.42
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Earlier I did succesfully use Claude in Rider through the Jetbrains AI Chat integration (and subscription). This now gives the same error.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗