查看npm和yarn 的镜像源和配置淘宝镜像源

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

 

posted @ 2020-05-26 21:44  养猪至富  阅读(1733)  评论(0编辑  收藏  举报