Skip to content

Instantly share code, notes, and snippets.

@jeeeez
Forked from 52cik/npm.taobao.sh
Created March 9, 2018 05:02
Show Gist options
  • Save jeeeez/7be2b1832019f8e6c23bc11f655ea5dd to your computer and use it in GitHub Desktop.
Save jeeeez/7be2b1832019f8e6c23bc11f655ea5dd to your computer and use it in GitHub Desktop.
npm 淘宝镜像配置
npm set registry https://registry.npm.taobao.org # 注册模块镜像
npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chromedriver 二进制包镜像
npm set operadriver_cdnurl http://cdn.npm.taobao.org/dist/operadriver # operadriver 二进制包镜像
npm set phantomjs_cdnurl http://cdn.npm.taobao.org/dist/phantomjs # phantomjs 二进制包镜像
npm set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass # node-sass 二进制包镜像
npm set electron_mirror http://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像
npm cache clean # 清空缓存
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment