App.getPath("userData") seems to give the wrong path
I believe the issue is that you're pointing Electron to your script directly, meaning Electron is ignoring the existence of your package.json
file entirely. Thus it does not know the name of your app.
Try:
"scripts": {
"start": "electron ."
}