npm/yarn

  • 代理
1
$ npm/yarn config set proxy http://127.0.0.1:1080
  • 淘宝镜像
1
2
3
4
$ npm/yarn config set registry https://registry.npm.taobao.org/
$ npm/yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
$ npm/yarn config set electron_mirror http://npm.taobao.org/mirrors/electron/
$ npm/yarn config set puppeteer_download_host https://npm.taobao.org/mirrors/
阅读全文 »