claude install breaks existing npm-installed Claude Code on Windows
Resolved 💬 4 comments Opened Feb 1, 2026 by avellinosantiago Closed Mar 2, 2026
Environment
- OS: Windows 11
- Node: v24.11.1
- Installation method: npm (global)
Steps to reproduce
- Install Claude Code via npm (
npm install -g @anthropic-ai/claude-code) — working correctly - Run
claude install claudecommand becomes unrecognized
Expected behavior
claude install should not break an existing working installation.
Actual behavior
After running claude install, the claude command is no longer recognized in the terminal.
Workaround
Reinstall via npm install -g @anthropic-ai/claude-code restores functionality.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗