node-sass装包报错
乔文飞 Lv8

node-sass安装依赖error: node-sass: Command failed报错解决

好好的yarn install。 报一个下图的错。
nodeSassError

问题原因:查看报错信息,再查找资料。可能是被墙了。
解决办法:将 sass-binary-site 添加至 yarn/npm config 中,指定node-sass在淘宝源中下载

1
2
yarn config set sass-binary-site https://npm.taobao.org/mirrors/node-sass
npm config set sass-binary-site https://npm.taobao.org/mirrors/node-sass

爬坑记录一下

  • 本文标题:node-sass装包报错
  • 本文作者:乔文飞
  • 创建时间:2020-08-17 16:27:58
  • 本文链接:http://www.feidom.com/2020/08/17/node-sass装包报错/
  • 版权声明:本博客所有文章为作者学习笔记,有转载其他前端大佬的文章。转载时请注明出处。