使用npm i報錯node-sass失敗問題解決

leepandar發表於2024-10-16

報錯資訊


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

相關文章