npm install 出现以下错误:
npmERR! code ELIFECYCLEnpmERR! errno1npmERR! node-sass@4.14.1postinstall: `node scripts/build.js`npmERR! Exit status1npmERR!npmERR! Failed at the node-sass@4.14.1postinstall script.npmERR! Thisisprobablynota problem withnpm. Thereislikely additional logging output above.npmERR! A complete logofthisrun can be found in:npmERR! C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2020-05-14T08_03_32_089Z-debug.log
出现原因:估计是家里网络不好下载安装不了,可以使用cnpm(npm淘宝镜像)安装或者手工设置该插件仓库地址
方法1
cnpm install
方法2
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
npm i