npm裝包一直都很成功,直到我碰見了node-sass這個包node
我一直報這樣的錯誤npm
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.13.1 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
後來在網上找到了解決方案sass
先卸載原來的安裝的node-sasspost
而後執行ui
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
this
做用是設置全局鏡像.net