Skip to content

Instantly share code, notes, and snippets.

@tomoat
Forked from 52cik/npm.taobao.sh
Created March 20, 2017 14:34
Show Gist options
  • Save tomoat/2708649e1eef13c0bd06aaada3fe9309 to your computer and use it in GitHub Desktop.
Save tomoat/2708649e1eef13c0bd06aaada3fe9309 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 # 清空缓存
@tomoat
Copy link
Author

tomoat commented Mar 20, 2017

npm set selenium_mirror=http://npm.taobao.org/mirrors/selenium
npm set node_inspector_mirror=https://npm.taobao.org/mirrors/node-inspector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment