YutHelloWorld / Blog

🌎 技术自留地
132 stars 17 forks source link

nvm使用新版淘宝镜像 #31

Open YutHelloWorld opened 2 years ago

YutHelloWorld commented 2 years ago

linux/mac设置新版淘宝镜像

添加一个环境变量即可

vim ~/.bashrc

然后最后新增一行:

export NVM_NODEJS_ORG_MIRROR=https://cdn.npmmirror.com/binaries/node

最后保存:wq使之生效

source ~/.bashrc

windows设置

修改setting文件

node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/