常用 npm 包国内下载加速镜像。放置在.npmrc中使用。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# node-canvas
canvas_binary_host_mirror=https://npm.taobao.org/mirrors/node-canvas-prebuilt/
# chromedriver
chromedriver_cdnurl=https://cdn.npm.taobao.org/dist/chromedriver
# Electron
electron_mirror=https://npm.taobao.org/mirrors/electron/
# inspector
profiler_binary_host_mirror=https://npm.taobao.org/mirrors/node-inspector/
# puppeteer
PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
# SASS
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
# sharp
sharp_dist_base_url=https://npm.taobao.org/mirrors/sharp/
# PantomJS
phantomjs_cdnurl=http://cnpmjs.org/downloads