linux下 nvm使用新版淘宝镜像及设置默认node版本 BG7ZAG | 2022-4-08 10:43 | 1,241 | 0 | 程序开发 54 字 | 1 分钟内 1. 设置新版淘宝镜像 添加一个环境变量即可 vim ~/.bashrc 然后最后新增一行: export NVM_NODEJS_ORG_MIRROR=https://cdn.npmmirror.com/binaries/node 最后保存 :wq 使之生效 source ~/.bashrc 2. 设置默认node版本 nvm alias defa… Linuxnodenvm淘宝镜像
yarn npm 设置新版淘宝镜像 BG7ZAG | 2021-12-20 17:42 | 552 | 0 | 程序开发 2 字 | 几秒读完 npm config set registry https://registry.npmmirror.com yarn config set registry https://registry.npmmirror.com npmnpmmirroryarn淘宝镜像