# electron set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ # phantomjs set PHANTOMJS_CDNURL=https://npm.taobao.org/mirrors/phantomjs/ # node-sass set SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
2.npm 执行参数
1 2 3 4 5 6 7
# electron npm install electron --electron-mirror=https://npm.taobao.org/mirrors/electron/ # phantomjs npm install phantomjs --phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ # node-sass npm install node-sass --sass-binary-site=https://npm.taobao.org/mirrors/node-sass/