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 application name or Electron version

See original GitHub issue

Getting the error Unable to determine application name or Electron version when running: electron-packager . --all

My package.json looks like so:

{
  "name": "app",
  "productName": "app",
  "version": "0.0.1",
  "description": "Hangouts as an application",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "author": "Allen Hendricks",
  "license": "ISC",
  "devDependencies": {
    "electron": "^1.4.1"
  },
  "dependencies": {}
}

I am 100% for sure in the root directory of my app for running the command line.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
maleptcommented, Mar 16, 2017

@transfluxus You need to run npm install --save-dev electron so that Electron Packager can infer the version from package.json.

1reaction
maleptcommented, Mar 22, 2017

@voltrevo

Alternatively, is there a way to specify the electron version as the error message suggests?

Running electron-packager . --electron-version=1.4.15 when electron is not in package.json works for me.

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 >
electron-packager - npm
Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI. Latest version: 17.1.1, last published: 2 ...
Read more >
app | Electron
Control your application's event lifecycle.
Read more >
Common Configuration - electron-builder
If you want to use js file, do not name it electron-builder.js . ... forceCodeSigning = false Boolean - Whether to fail if...
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 >

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