1111mp / nvm-desktop

Node Version Manager Desktop - A desktop application to manage multiple active node.js versions.
https://github.com/1111mp/nvm-desktop
MIT License
675 stars 34 forks source link

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

Closed Mophar-gift closed 8 months ago

Mophar-gift commented 8 months ago

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

image

1111mp commented 8 months ago

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

已经在 commit 1776bc4 中修复。

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

1111mp commented 8 months ago

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

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

Mophar-gift commented 8 months ago

好的 感谢解答

1111mp commented 8 months ago

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

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