Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to determine Electron version. Please specify an Electron version

Tags:

electron

I was trying to create executable file for electron app but faced this issue

Unable to determine Electron version. Please specify an Electron version

Though I have electron installed on my machine globally but still it was giving me error.

like image 865
WasiF Avatar asked Jan 01 '23 22:01

WasiF


1 Answers

Install electron as dev-dependency to resolve this issue

npm install --save-dev electron

Resources https://github.com/electron-userland/electron-packager/issues/617

like image 153
WasiF Avatar answered Feb 08 '23 17:02

WasiF