Skip to content

Instantly share code, notes, and snippets.

@bloatfan
Forked from 52cik/npm.taobao.sh
Created February 1, 2018 06:30
Show Gist options
  • Select an option

  • Save bloatfan/dad17b4c3648fb5040b4e1c03d4dd1ea to your computer and use it in GitHub Desktop.

Select an option

Save bloatfan/dad17b4c3648fb5040b4e1c03d4dd1ea to your computer and use it in GitHub Desktop.

Revisions

  1. @52cik 52cik revised this gist Sep 27, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions npm.taobao.sh
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,6 @@ npm set chromedriver_cdnurl http://cdn.npm.taobao.org/dist/chromedriver # chrome
    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 # 清空缓存
  2. @52cik 52cik revised this gist Sep 26, 2016. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions npm.taobao.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    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 cache clean # 清空缓存
  3. @52cik 52cik revised this gist Mar 24, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions npm.taobao.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    npm set registry https://registry.npm.taobao.org
    npm set disturl https://npm.taobao.org/dist
    npm cache clean
    npm set registry https://registry.npm.taobao.org # 注册模块镜像
    npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
    npm cache clean # 清空缓存
  4. @52cik 52cik created this gist Mar 24, 2016.
    3 changes: 3 additions & 0 deletions npm.taobao.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    npm set registry https://registry.npm.taobao.org
    npm set disturl https://npm.taobao.org/dist
    npm cache clean