Unable to determine Electron version. Please specify an Electron version.
See original GitHub issue- [x ] I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue: I want to make a packeger for my electron app but i have this error, what i do wrong
this is the command
electron-packager C:\Users\myName\Desktop\electron_tests\myApp --platform=win32 --arch=x64 myApp-built
Console output when you run electron-packager with the environment variable DEBUG=electron-packager
. Please include the stack trace if one exists.
Put the console output here
Unable to determine Electron version. Please specify an Electron version
For more information, please see https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#version
What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager()
function?
Put the arguments or parameters here
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-quick-start is a good starting point.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
You need to either:
npm install --save-dev electron
--electron-version=1.6.2
to theelectron-packager
command (Electron 1.6.2 is just the latest stable version at the time of this comment - any version will do)I suggest the first option.
I’m not sure what you’re asking. Yes, it’s going to be pretty big when you package it. That is the downside to building Electron apps (instead of, for example, writing a native desktop application). I did a quick analysis of Electron 1.3.x in another issue - it was ~100MB just for the 32-bit Windows runtime.
You either needed to do one or the other, not both. You don’t need to add the
--electron-version
flag since you addedelectron
todevDependencies
.