Npm和Yarn设置淘宝镜像 NpmYarn Npm 1、查询当前配置的镜像 npm get registry 2、配置镜像 pm config set registry https://registry.npm.taobao.org Yarn 1、查询当前配置的镜像 yarn config get registry 2、配置镜像 yarn config set registry https://registry.npm.taobao.org/