fyears / electron-python-example

Electron as GUI of Python Applications
MIT License
2k stars 234 forks source link

Installation Issue - electron version problem #31

Closed amin-nejad closed 3 years ago

amin-nejad commented 5 years ago

If anyone is having trouble getting the application to work e.g. getting this error, it may be because you are using a newer version of electron (currently 1.8.8), it needs to be 1.7.6. However, running npm install --runtime=electron --target=1.7.6 as per the instructions will not work because of an issue in the package.json file. You need to change:

"devDependencies": { "electron": "^1.7.6",

which allows newer versions of electron, to

"devDependencies": { "electron": "1.7.6",

Hope this will help someone