question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

29reactions
maleptcommented, Mar 9, 2017

You need to either:

  • run npm install --save-dev electron
  • add --electron-version=1.6.2 to the electron-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.

2reactions
maleptcommented, Mar 9, 2017

i have the electron prbuilt instaled and my code with node modules are 184 mb now i gon install and the electon and my code is gona be 230 mb that is problem ???

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.

my package.json is like this were to put the --electron-version ??

You either needed to do one or the other, not both. You don’t need to add the --electron-version flag since you added electron to devDependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to determine Electron version. Please specify an ...
I was trying to create executable file for electron app but faced this issue. Unable to determine Electron version. Please specify an ......
Read more >
Options | electron-packager
The release version of the application. By default the version property in the package.json is used, but it can be overridden with this...
Read more >
Common Configuration - electron-builder
If buildVersion is not defined and buildNumber (or one of the buildNumber envs) is defined, it will be used as a build version...
Read more >
Advanced Installation Instructions | Electron
The preferred method is to install Electron as a development dependency in your app: ... To change the format, use the {{ version...
Read more >
electron-osx-sign - npm
Codesign Electron macOS apps. Latest version: 0.6.0, last published: a year ago. Start using electron-osx-sign in your project by running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found