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

2022/7/13 1:23:58

本文主要是介绍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

 

结果: 问题解决成功



这篇关于npm install报错 npm ERR! Failed at the node-sass@4.14.1 postinstall script.的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程