按照官网教程可以正常安装,但是npm start提示Error: Electron failed to install correctly, please delete node_modules/electron and try
去electron Mirror (taobao.org)下载对应electron版本的压缩包(!一定要对应自己的版本)
在node_modules/electron里新建dist文件夹,把下载的压缩包解压到dist中
electron下新建path.txt,内容为electron.exe
然后在electron路径下执行node install.js(安装大概要10分钟左右)
最后回到对应文件路径下npm start