1.查询npm,yarn等下载包的源地址

npm config get registry

yarn config get registry

2.设置成国内淘宝镜像的地址(加快下载第三方包的速度,服务器在国内)

npm config set registry https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org

3.使用yarn下载node-sass包失败的解决方法

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

 

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-12-04
猜你喜欢
  • 2021-07-06
  • 2021-11-01
  • 2022-02-09
  • 2021-08-26
  • 2021-09-05
  • 2021-06-04
  • 2021-11-25
相关资源
相似解决方案