windows使用nvm提示This is not the package you are looking for: please go to http://nvm.sh

内容分享2小时前发布
0 0 0

使用npm安装nvm后,输入nvm命令提示This is not the package you are looking for: please go to http://nvm.sh

npm官网(nvm  –  npm)搜索nvm发现,npm已经启用了npm install的方式安装nvm,使用这种方式安装出来的nvm不是一个正确的包。

windows使用nvm提示This is not the package you are looking for: please go to http://nvm.sh

正确的安装方式:

github下载:下载链接

下载nvm-setup.zip

常用命令:

修改淘宝镜像地址:nvm node_mirror https://npm.taobao.org/mirrors/node/

列出所有本地node版本:nvm ls

列出所有服务器node版本:nvm ls-remote

安装指定node版本:nvm install v12.0.0 (可模糊安装,如nvm install 12)

删除指定node版本:nvm uninstall v12.0.0

切换指定node版本:nvm use v12.0.0

显示当前node版本:nvm current

© 版权声明

相关文章

暂无评论

none
暂无评论...