当前位置: 代码迷 >> 综合 >> 输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `no
  详细解决方案

输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `no

热度:3   发布时间:2023-12-05 15:06:41.0

输入npm install

报以下错误

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

这个是因为sass安装时获取源的问题,修改sass安装的源,使用taobao的npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
然后运行npm install

原文链接:https://www.cnblogs.com/pxblog/p/12444050.html

  相关解决方案