问题
在vue项目安装组件时,npm install,出现的问题
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@6.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决方法
npm install node-sass@npm:sass --ignore-scripts
执行成功后,再次进行npm install ,然后就可以了。
作者:筱白爱学习!!
欢迎关注转发评论点赞沟通,您的支持是筱白的动力!