记录下自己的解决过程
输入npm install
报以下错误
1 | npm ERR! code ELIFECYCLE
2 | npm ERR! errno 1
3 | npm ERR! node-sass@4.13.1 postinstall: node scripts/build.js
4 | npm ERR! Exit status 1
5 | npm ERR!
6 | npm ERR! Failed at the node-sass@4.13.1 postinstall script.
7 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
这个是因为sass安装时获取源的问题,修改sass安装的源,使用taobao的npm
1 | npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
然后运行
1 | npm install