执行以下代码
npm i node-sass -D
出现以下错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@7.0.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@7.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
原因:下载源
解决:重新设置下载源
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass