npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。