当前位置:   article > 正文

【已解决】npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`_failed at the node-sass@4.14.1 postinstall script.

failed at the node-sass@4.14.1 postinstall script.

报错讯息

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
  • 1

如果还是不行,

  1. 删除 package-lock.json
  2. npm install gulp-sass --save-dev
  3. npm install node-sass@latest

参考来源

Failed at the node-sass@3.13.1 postinstall script 原帖
stackoverflow

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/530617
推荐阅读
相关标签
  

闽ICP备14008679号