1、安装nodejs
2、安装淘宝镜像的包命令行管理工具cnpm:npm install cnpm -g --registry=http://registry.npm.taobao.org
3、安装electron:cnpm install electron -g
4、进入electron项目,启动:electron .
1、安装nodejs
2、安装淘宝镜像的包命令行管理工具cnpm:npm install cnpm -g --registry=http://registry.npm.taobao.org
3、安装electron:cnpm install electron -g
4、进入electron项目,启动:electron .