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

xieting 2020-05-26

1、查看

#npm:npm config get registry #yarn:yarn config get registry

 

2、设置

#(命令行)设置淘宝源#npm:
npm config set registry https://registry.npm.taobao.org#yarnyarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global

相关推荐

Notzuonotdied / 0评论 2020-04-20
硅步至千里 / 0评论 2020-04-19
tomli / 0评论 2020-03-04