-
Notifications
You must be signed in to change notification settings - Fork 45
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
nvm-desktop: command not found: {lib} #23
Comments
卸载后仍然出现nvm-desktop: command not found:node,这个如何解决? |
@rmd1710714107 根据文档完全卸载 |
感谢,已解决 |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
你好,我按照上面的说明,把环境变量也设置了,顺序也调整了。全局安装yarn后,依然报错nvm-desktop: command not found: "yarn" |
@overrei 请问这边更改过npm的全局安装路径吗 如果没有更改的话,正常情况下通过 然后如果你更改过npm的全局安装包路径的话 比如我本地通过 如果这时候我没有将其加入到环境变量,直接运行 所以你按照这个步骤验证一下看看哪里有问题呢 比如在执行这些命令过程中 终端有报错吗 或者执行 |
@1111mp 谢谢你的说明 |
@overrei 你需要把 然后再重启一下终端运行一下 |
@1111mp |
@overrei 这个yarn是在当前的node版本下安装的吗 你可以重新安装一下试试 npm install yarn -g 然后再执行 yarn -v 看看 如果还是不行 那应该就是之前应该在没改npm的prefix之前已经全局安装了yarn 然后更改之后又安装了一次 然后系统变量虽然都加了 但是两者可能有冲突 你可以试着将 |
@1111mp 终于好了,就像你说的。我把 |
请问一下 这个node_global是干啥的 |
@Coder-LzZ |
This issue aims to explain why the
nvm-desktop: command not found
prompt message appears. Only applies to the following two situations:prefix
option ofnpm
. (npm config set prefix "/path/to/folder"
) That is the directory of the "npm" global installation package has been changed.yarn
orpnpm
throughcorepack
. (corepack enable --install-directory /path/to/folder
) The directory where the executable is generated was changed via the--install-directory
option.Therefore, the error prompt of
nvm-desktop: command not found
in the terminal is in line with its respective default behavior. At this time, you need to manually add the/path/to/folder
directory path to the system environment variable, and then terminal can be correctly identified. However, please note that when adding it to the system environment variable, you need to put the path of/path/to/folder
beforenvmd
($HOME/.nvmd/bin
).You can download a node version separately to test its respective default behavior without using
nvm-desktop
.这个 issue 旨在解释为何出现
nvm-desktop: command not found
提示信息。 只适用于以下两种情况:npm
的prefix
选项。 (npm config set prefix "/path/to/folder"
) 即npm
全局安装包的目录已更改。corepack
使用yarn
或pnpm
时。 (corepack enable --install-directory /path/to/folder
) 通过--install-directory
选项更改了可执行文件生成的目录。终端中出现
nvm-desktop: command not find
的错误提示符合其各自的默认行为的。 这时需要手动将/path/to/folder
目录路径添加到系统环境变量中,然后终端才能正确识别。不过请注意,在添加到系统环境变量的时候,需要将/path/to/folder
的路径放在nvmd
($HOME/.nvmd/bin
) 之前。你可以在不使用
nvm-desktop
的情况下单独下载一个node的版本到本地进行测试。当更改过npm
的全局包安装路径以及通过corepack enable --install-directory /path/to/folder
命令生成yarn
&pnpm
的可执行文件时,需要将其对应的路径添加到环境变量中之后终端才能够正确识别。Reference:
The text was updated successfully, but these errors were encountered: