配置npm和yarn镜像

1.查看所有配置:
npm config list --json
2.查看 registry:
npm config get registry
# https://registry.npmjs.org/
3.配置 registry:
# 淘宝镜像源
npm config set registry https://registry.npmmirror.com
1.查看所有配置:
yarn config list --json
2.查看 registry:
yarn config get registry
# https://registry.yarnpkg.com
3.配置 registry:
# 淘宝镜像源
yarn config set registry https://registry.npmmirror.com
4.yarn镜像管理工具 yrm:
yarn global add yrm

yrm ls

npm ---------- https://registry.npmjs.org/
* yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
taobao ------- https://registry.nlark.com/
npmMirror ---- https://skimdb.npmjs.com/registry/

yrm use taobao