npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 postinst


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.

分析一下,這個錯誤的出現是因為sass安裝時獲取源的問題,修改sass安裝的源。
解決辦法:使用taobao的npm

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
回車后,再輸入npm install就完美解決了。

npm install


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM