nvm 使用淘宝镜像

export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs

npm 使用淘宝镜像安装包

相关文件: ~/.npmrc

npm config set registry https://registry.npm.taobao.org
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/

yarn 使用淘宝镜像安装包

相关文件: ~/.yarnrc

yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass/ -g
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g
yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g
发表评论
funlee
456
wuchao
123
wuchao
回复 @wuchao: 123
wuchao
123