Npm和Yarn添加淘宝镜像
NPM设置淘宝镜像
查询当前配置的镜像
npm get registry
设置淘宝镜像
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
Yarn 设置淘宝镜像
查询当前配置的镜像
yarn get registry
设置淘宝镜像
yarn config set registry https://registry.npm.taobao.org
yarn config set disturl https://npm.taobao.org/dist
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/