npm install报错 npm ERR! Failed at the node-sass@4.14.1 postinstall script.


问题:

执行npm install 报错如下:

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 ERR! A complete log of this run can be found in:
npm ERR! /home/fs-user/.npm/_logs/2022-07-12T03_51_10_687Z-debug.log

 

解决:修改sass下载源

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

 

结果: 问题解决成功

原创文章,作者:506227337,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/273820.html

(0)
上一篇 2022年7月12日 15:44
下一篇 2022年7月12日 15:44

相关推荐

发表回复

登录后才能评论