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

  1. Install Claude Code via npm (npm install -g @anthropic-ai/claude-code) — working correctly
  2. Run claude install
  3. claude command 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.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗