.npmrc
每次拉下来个老项目,大家是否和我一样祈祷下包的时候千万别报错呀,但总会遇到一两个node-sass下载报错的项目。很烦!!!,除了不停的删包重新下载外,有没有解决这个问题的办法呢???
新建 .npmrc 文件,然后放在项目根目录, 与main.js 同级。就可以解决老项目 node-sass 下载失败问题拉!!!
home=https://npm.taobao.org
registry=http://172.25.66.6:4873/
sass_binary_site="https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl="http://cnpmjs.org/downloads"
electron_mirror="https://npm.taobao.org/mirrors/electron/"
sqlite3_binary_host_mirror="https://foxgis.oss-cn-shanghai.aliyuncs.com/"
profiler_binary_host_mirror="https://npm.taobao.org/mirrors/node-inspector/"
chromedriver_cdnurl="https://cdn.npm.taobao.org/dist/chromedriver"
SENTRYCLI_CDNURL=https://cdn.npm.taobao.org/dist/sentry-cli
sentrycli_cdnurl=https://cdn.npm.taobao.org/dist/sentry-cli