1、在项目根目录下新建.npmrc文件 在文件中写入 ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ 2、删除node_modules,重新执行安装命令