// for windows
set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
// for linux
export ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
vim node_modules/electron-download/lib/index.js
将https://github.com/electron/electron/releases/download/v
更换为https://npm.taobao.org/mirrors/electron/
{
key: 'baseUrl',
get: function get() {
return process.env.NPM_CONFIG_ELECTRON_MIRROR || process.env.npm_config_electron_mirror || process.env.ELECTRON_MIRROR || this.opts.mirror || 'https://npm.taobao.org/mirrors/electron/';
}