[BUG] claude doctor to work with nvm

Resolved 💬 1 comment Opened Apr 25, 2026 by christseng89 Closed May 29, 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?

  • Claude Code version: 2.1.119
  • Install method: npm via nvm (/c/nvm4w/nodejs/node_modules/@anthropic-ai/claude-code/)
  • OS: Windows 11 Pro (arm64)
  • Repro: claude doctor → exit code 139 (segfault)
  • Root cause: C:\Program Files\ClaudeCode\ does not exist (npm install, not standalone installer)

What Should Happen?

claude cli crashed from time to time and exit to DOS command.

Error Messages/Logs

Steps to Reproduce

  1. claude
  2. /context
  3. crashed

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.119

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

  1. claude doctor assumes Claude Code was installed via the standalone Windows installer and hardcodes C:\Program

Files\ClaudeCode\ as the expected path

  1. When installed via npm/nvm, that directory doesn't exist
  2. Instead of detecting this and printing something like "not installed via standalone installer, skipping

auto-updater check", it segfaults

That's a clear bug — a missing directory should never cause a crash. It should be handled gracefully.

You can report it at https://github.com/anthropics/claude-code/issues with these details:

  • Claude Code version: 2.1.119
  • Install method: npm via nvm (/c/nvm4w/nodejs/node_modules/@anthropic-ai/claude-code/)
  • OS: Windows 11 Pro (arm64)
  • Repro: claude doctor → exit code 139 (segfault)
  • Root cause: C:\Program Files\ClaudeCode\ does not exist (npm install, not standalone installer)

※ recap: We diagnosed errors in Claude Code's debug logs. The one open action is filing a bug report at
github.com/anthropics/claude-code/issues for the claude doctor segfault when Claude Code is installed via nvm.
(disable recaps in /config)

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗