Unable to determine application name or Electron version
See original GitHub issueGetting 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:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@transfluxus You need to run
npm install --save-dev electron
so that Electron Packager can infer the version from package.json.@voltrevo
Running
electron-packager . --electron-version=1.4.15
whenelectron
is not inpackage.json
works for me.