Are you stumbling in that error message: Electron failed to install correctly, please delete node_modules/electron and try installing again - So maybe that link https://stackoverflow.com/a/56813379 can help you to solve it.
HEAPS UP! That is going to remove
package.json and add again but it's going to add latest version if you want another version you need to add manually electron version into
npm uninstall electron and then run
npm install instead of
npm install electron.