使用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