1、文档
https://www.electronjs.org/
2、npm i 报错
我的npm 源是 http://registry.cnpmjs.org/
切换镜像源
npm config set registry http://registry.npm.taobao.org/
2、安装报错 Failed at the electron@17.0.0 postinstall script.
解决方法:将electron下载地址指向taobao镜像
npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"