node 和 npm 淘寶源

neil_發表於2018-06-30
# nvm
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
複製程式碼
# npm
npm set registry https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org

npm set disturl https://npm.taobao.org/dist
npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver
npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver
npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs
npm set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents
npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass
npm set electron_mirror http://cdn.npm.taobao.org/dist/electron
複製程式碼
npm i nrm -g  npm源管理模組
複製程式碼

相關文章