Skip to main content

Troubleshooting

SymptomLikely CauseVerifyFix
vX is not installed on nvm use XRequested version missing and auto-install disablednvm list installednvm install X; optionally nvm use X --install
No previously active version found. on nvm use lastNo prior default captured yetnvm defaultSet one version with nvm use X, then retry nvm use last
No versions installed.Fresh machine or install root mismatchnvm env; nvm config get rootnvm install lts; correct root with nvm config set root=...
Blocked by this computer's policy.Policy-managed setting/operationnvm config list; nvm config get <key>Coordinate with IT policy owner; do not force local overrides
sync.exe not found for doctor or upgradeMissing/corrupt sync utilitynvm env; run nvm doctor --listReinstall/repair distribution so sync utility is restored
Link mode fails to activateLink/junction privilege or path issuenvm use link; nvm envSwitch to shim (nvm use shim) or grant required link privileges
Cache grows too largeLong-lived cache retentionnvm cache view; nvm list cachednvm cache remove version ...; nvm cache remove all
Mirror unreachable warningsNetwork/proxy/mirror issuenvm env mirror reachability sectionSet mirrors/proxy with nvm config set node_mirror=... npm_mirror=... proxy=...
Alias command rejectedReserved alias name usednvm alias listChoose non-reserved alias (legacy, stable24, etc.)
package.json not found with nvm rc --file=package.jsonCommand run in wrong directorydir package.jsonRun command in project root or use .nvmrc target

Suggested Triage Flow

  1. Capture environment snapshot.
nvm env
nvm default
nvm config list
  1. Validate installed/runtime state.
nvm list installed
nvm list cached
where.exe node
  1. Run diagnostics.
nvm doctor --list
nvm doctor
  1. Apply targeted fix (install, use, config, cache, or mode).

  2. Re-verify with nvm env and nvm doctor.

Enterprise Notes

  • In certified/managed environments, policy can intentionally block local mutation for specific settings.
  • Prefer policy-compliant remediation over manual registry edits.
  • For fleet issues, use nvm env --json and nvm doctor --json to collect machine-readable diagnostics.