控制台运行npm install时报错,报错信息如下:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决方法一:
1、卸载node-sass
运行:npm uninstall node-sass
2、重新安装指定的node-sass版本(安装失败的版本)
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
运行:
npm install node-sass@4.9.0
npm install node-sass@3.13.1