[BUG] Title: /doctor false positive: flags standalone installer binary as leftover npm global install.
Resolved 💬 1 comment Opened Jun 4, 2026 by FancyPantsJim Closed Jul 9, 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?
Actual: /doctor flags it as a leftover npm install and suggests an ineffective fix.
This is a false positive. The binary at ~/.local/bin/claude is a symlink to
~/.local/share/claude/versions/<version> — the standalone (non-npm) Claude Code installer.
The npm global package is not installed (npm list -g @anthropic-ai/claude-code returns
empty), so the suggested fix does nothing and the warning persists on every /doctor run.
Environment:
- Platform: Linux (Debian 6.1.0)
- Install method: standalone installer
- Claude version: 2.1.162
---
What Should Happen?
Expected: No warning, or a warning that correctly identifies this as the active standalone
installation.
Error Messages/Logs
▎ Leftover npm global installation at /home/woohawg/.local/bin/claude
▎ Suggested fix: npm -g uninstall @anthropic-ai/claude-code
Steps to Reproduce
Steps to reproduce:
- Install Claude Code via the standalone installer (not npm)
- Run /doctor
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
- Claude version: 2.1.162
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗