报错讯息
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall:node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决方案
npm install node-sass@latest
如果还是不行,
- 删除 package-lock.json
npm install gulp-sass --save-dev
npm install node-sass@latest
参考来源
Failed at the node-sass@3.13.1 postinstall script 原帖
stackoverflow