react前端项目在用yarn install命令安装依赖时报错了,看了下报错信息是node-sass安装的时候编译报错。
解决方法:
第一步:配置淘宝镜像
yarn config set registry https://registry.npm.taobao.org -g

第二步:配置下 node-sass 的二进制包镜像地址
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

参考:
https://www.jianshu.com/p/b37aa202da5c

相关文章:

  • 2021-12-14
  • 2023-01-24
  • 2022-12-23
  • 2021-07-20
  • 2021-05-19
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2022-02-20
  • 2021-06-21
  • 2021-11-03
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案