一 运行调试
vscode 和 WebStorm 可以调试
新增run.js 通过node 进程调用调试
const exec = require('child_process').exec
exec('electron .')
二 控制台中文乱码
在package.json中修改 命令 加入chcp 65001 &&
如
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "chcp 65001 && electron ."
},