1111mp / nvm-desktop

Node Version Manager Desktop - A desktop application to manage multiple active node.js versions.

Home Page:https://github.com/1111mp/nvm-desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

全局安装nrm,不能全局使用

Mophar-gift opened this issue · comments

npm i -g nrm 全局安装了一个包,但是没有自动生成垫片,但是全局安装的yarn、pnpm都是正常的。

image

已经定位到问题了 解析包package.json的"bin"字段的规则出了问题 没有和npm的行为保持一致 bin document

已经在 commit 1776bc4 中修复。

我会尽快发个新版本出来,抱歉。

目前可提供一个临时的方法手动解决一下:
%HOMEPATH%\.nvmd\bin目录下,直接将cli.exe&cli.cmd 重命名为 nrm.exe & nrm.cmd

(因为错误的解析规则导致生成的垫片文件出现问题。)

好的 感谢解答

It's fixed in the latest version Release v2.6.1.

If you still have problems, please reopen this issue at any time