配置npm和yarn镜像
配置npm和yarn镜像
1.查看所有配置:2.查看 registry:3.配置 registry:
npm config list --json
npm config get registry
# https://registry.npmjs.org/
# 淘宝镜像源
npm config set registry https://registry.npmmirror.com
1.查看所有配置:2.查看 registry:3.配置 registry:4.yarn镜像管理工具 yrm:
yarn config list --json
yarn config get registry
# https://registry.yarnpkg.com
# 淘宝镜像源
yarn config set registry https://registry.npmmirror.com
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
最后更新于