[Bug] Infinite Loop: Claude Doctor Command Causes Terminal Hang and CPU Overload
Bug Description claude doctor hangs indefinitely, uses 100% CPU, and soft locks terminal session
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.96
- Feedback ID: 6db334c0-ffee-40d4-9812-213dbabe06ee
Errors
[]
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/6705
- https://github.com/anthropics/claude-code/issues/1656
- https://github.com/anthropics/claude-code/issues/4463
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
i am seeing the same problem
OS: macos Sequoia 15.6.1 Terminal: macos native Terminal claude code: 1.0.96
symptom: CPU usage 100%, hang the whole terminal session
This just happened to me on macOS with Cursor. The important distinction for me is that claude doctor works fine when installed via npm but leads to this issue when installed via curl -fsSL https://claude.ai/install.sh | bash .
yeah this just happened to me after switching to the native installation from npm
edit: does appear to be when using the claude doctor command
For folks seeing this hang, do you have npm installed on your system? If you run npm -g config get prefix does it come back right away?
@wolffiex
For folks seeing this hang, do you have npm installed on your system? If you run
npm -g config get prefixdoes it come back right away?
- Yes,
npminstalled (hard to do anything without that) npm -g config get prefixcomes back right away (showing correct global install dir)
This affects more than just claude doctor. See my more expansive issue: https://github.com/anthropics/claude-code/issues/6823
This should be resolved in 1.0.98, released today.
Confirmed, works now.
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.