Skip to content

[issue] v2.0.1-hotfix.1: npm install -g <package> fails to trigger reshim for global packages #1398

Description

@TinyPeanut

Issue Summary

In v2.0.1-hotfix.1, npm install -g <package> fails to trigger the automatic reshim process, making globally installed CLI tools (e.g., commitizen, @anthropic-ai/claude-code) uncallable.

Steps to Reproduce

  1. Run npm install -g commitizen
  2. Attempt to run cz --version

Actual Behavior

  • Terminal reports the command is not recognized.
  • No corresponding shim files are generated in the .shim directory for the newly installed packages.
  • Manually running nvm reshim successfully resolves the issue and makes the command callable.

Expected Behavior

Global npm packages should be automatically shimmed and invocable immediately after installation.

Environment

  • OS: Windows [11]
  • nvm-windows version: v2.0.1-hotfix.1 (custom node path)
  • Node.js version: [22.23.2]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions