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,node,ERR,sass,postinstall,报错,4.14 来源: https://www.cnblogs.com/DerekChen517/p/16469584.html