Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Mophar-gift opened this issue Dec 6, 2023 · 4 comments
Closed

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

Mophar-gift opened this issue Dec 6, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Mophar-gift
Copy link

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

image

@1111mp
Copy link
Owner

1111mp commented Dec 6, 2023

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

已经在 commit 1776bc4 中修复。

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

@1111mp
Copy link
Owner

1111mp commented Dec 6, 2023

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

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

@1111mp 1111mp added the bug Something isn't working label Dec 6, 2023
@Mophar-gift
Copy link
Author

好的 感谢解答

@1111mp
Copy link
Owner

1111mp commented Dec 6, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants