查看当前计算机的下载地址

# npm命令
npm config get registry
# yarn命令
yarn config get registry

修改为淘宝npm镜像

# npm命令
npm config set registry http://registry.npm.taobao.org/
# yarn命令
yarn config set registry http://registry.npm.taobao.org/

修改为原始地址

# npm命令
npm config set registry http://registry.npmjs.org/
# yarn命令
yarn config set registry http://registry.npmjs.org/

 

相关文章:

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