欢迎来到 跌倒的小黄瓜 的博客

♪(^∇^*)我要当大佬,(#^.^#)哈哈哈哈,(。-ω-)zzz我要成为优秀的人,(*^▽^*)٩(๑>◡<๑)۶O(∩_∩)O哈哈~~~~~~~~欢迎━(*`∀´*)ノ亻!

npm解决node-sass安装失败

npm装包一直都很成功,直到我遇见了node-sass这个包

我一直报这样的错误

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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsershpAppDataRoamingnpm-cache_logs2020-01-19T01_20_26_816Z-debug.log

后来在网上找到了解决方案

先卸载原来的安装的node-sass

然后执行

npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/

作用是设置全局镜像

感谢大佬写的博客,让我解决了和这个问题,真的十分感谢

posted @ 2020-01-19 09:56  跌倒的小黄瓜  阅读(12124)  评论(0编辑  收藏  举报