1、查看

 

#npm:
npm config get registry



#yarn:
yarn config get registry

 

2、设置

#(命令行)设置淘宝源
#npm: npm config
set registry https://registry.npm.taobao.org


#yarn
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

 

相关文章:

  • 2022-02-28
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-04
  • 2021-07-21
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案