【問題描述】
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