[BUG] CLI hangs on macOS 15.7.4 ARM64 — shebang execution stuck in dyld_start
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?
Claude Code CLI hangs indefinitely on all commands (e.g. claude --version) on macOS 15.7.4 ARM64. The process gets stuck in _dyld_start (macOS dynamic linker) and never completes. Both the standalone binary and npm-installed wrapper are affected. Requires Ctrl+C to exit.
Key finding: node "$(which claude)" --version works perfectly, but claude --version hangs. The issue is specific to shebang (#!/usr/bin/env node) execution.
What Should Happen?
claude --version should return the version string and exit, as it does when invoked via node "$(which claude)" --version.
Error Messages/Logs
No error is produced — the process simply hangs. Using macOS `sample` command on the hung process shows:
Call graph:
8592 _dyld_start (in dyld) + 0 [0x1029d1274]
The process never progresses past dynamic linking.
Steps to Reproduce
- On macOS 15.7.4 (ARM64 / Apple Silicon), install via
npm install -g @anthropic-ai/claude-code - Run
claude --version - Process hangs indefinitely — no output, no error
- Ctrl+C to exit
- Verify the script itself is fine:
node "$(which claude)" --version→ returns2.1.63 (Claude Code)immediately
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.63 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- macOS 15.7.4, Apple Silicon (ARM64)
- Node v20.12.2 (installed via nvm)
- Shell: zsh (oh-my-zsh)
- Standalone binary from install.sh also hangs with identical dyld_start stack
- Codesign validation passes, no quarantine attributes
/usr/bin/env node --versionworks fine independently- Workaround:
alias claude="node $(which claude)"in ~/.zshrc
Possibly related: #27045 (Homebrew cask hangs on startup on macOS arm64)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗