系统中的节点版本问题

问题描述 投票:0回答:1

我想使用nvm处理节点版本。我已经卸载了节点并开始使用nvm。但我在屏幕截图中显示了以下问题。添加了几个丝网印刷以供参考。

任何帮助,将不胜感激。

enter image description here

系统变量设置如下所示

enter image description here

这是nvm所在的位置

enter image description here

node.js npm system nvm
1个回答
0
投票

我之前也遇到过这个问题。您可以尝试使用以下命令删除两者并从头开始安装。

rm -R ~/.npm ~/.nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
nvm install node
© www.soinside.com 2019 - 2024. All rights reserved.