mac系统安装nvm遇到的问题以及下载速度慢的解决方法

安装不成功

命令行安装复制过来回车以后,出现nvm: Comman Not Found

解决方法:

重新打开终端,输入 touch ~/.bash_profile

然后重新执行github上复制过来的安装nvm的那段脚本

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash

可以如下一起输入

touch ~/.bash_profile
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash

按回车即可

下载速度慢

命令行输入

NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node

回车即可,意思是更换下载源到淘宝镜像

你可能感兴趣的:(项目相关)