使用npm i报错node-sass失败问题解决
报错信息
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.
node 版本:v14.16.0
解决方法:
npm config set sass_binary_site=https://npmmirror.com/mirrors/node-sass
设置完之后,再npm install
本文来自博客园,作者:leepandar,转载请注明原文链接:https://www.cnblogs.com/leepandar/p/18470007

浙公网安备 33010602011771号