npm裝包一直都很成功,直到我遇見了node-sass這個包
我一直報這樣的錯誤
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! C:UsershpAppDataRoamingnpm-cache_logs2020-01-19T01_20_26_816Z-debug.log
后來在網上找到了解決方案
先卸載原來的安裝的node-sass
然后執行
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
作用是設定全域鏡像
感謝大佬寫的博客,讓我解決了和這個問題,真的十分感謝
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/91862.html
標籤:其他
上一篇:博客園二次元主題
