輸入npm install
報以下錯誤
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.
這個是因為sass安裝時獲取源的問題,修改sass安裝的源,使用taobao的npm
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
然后運行
npm install