// npm淘宝镜像
npm config set registry https://registry.npm.taobao.org
// 验证是否成功
npm config get registry
npm清除缓存
npm cache clean --force
yarn转淘宝镜像
// yarn淘宝镜像
yarn config set registry https://registry.npm.taobao.org
// 验证是否成功
yarn config get registry
yarn清除缓存
yarn cache clean
//将 Electron 镜像源设置为淘宝镜像源
npm config set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
//将 Electron-builder 镜像源设置为淘宝镜像源
npm config set ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/