輸入npm install 時出現 node-sass 錯誤

【問題描述】

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 [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:\Users\86156\AppData\Roaming\npm-cache\_logs\2020-06-28T10_21_07_883Z-debug.log

 

【問題解決方案】:這個是因爲 sass安裝時獲取源的問題,修改 sass安裝的源,使用 taobao的 npm

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

  然後運行

npm install
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章