首页 前端知识 【已解决】npm ERR! [email protected] postinstall: `node scripts/build.js`

【已解决】npm ERR! [email protected] postinstall: `node scripts/build.js`

2024-05-26 00:05:51 前端知识 前端哥 462 406 我要收藏

报错讯息

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. 删除 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

转载请注明出处或者链接地址:https://www.qianduange.cn//article/9554.html
标签
sass
评论
发布的文章

html5怎么实现语音搜索

2024-06-01 10:06:32

HTML5

2024-02-27 11:02:15

HTML - 头部元素

2024-06-01 10:06:06

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!