The Electron tutorial app is now working with Electron version 5.0.8. After downloading the new version make sure to run:
npm install
npm install -g [email protected]
The biggest difference in this version is enabling nodeIntegration:
webPreferences: {
nodeIntegration: true
}
You can see the code on Github