-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run with Node 10 #831
Comments
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
Any solution yet? Do we have to downgrade to node 4.x? |
@Joni4Games It is patched. Just use the latest 9.x release until the fix is published. |
Thanks for your patience, a fix has been released in 12.0.2. |
well, i'm using version 12.1.0 and issue remains the same |
@psharneja I cannot reproduce this. My steps (on Linux):
My output:
|
On my system the issue also appears to be fixed in 12.1.0. |
I am beginning to learn about Electron through the electron-api-demos app. When trying to run I am running the following versions:
|
@jsejcksn if you run |
Hi @malept: Thanks for responding. Running your example command produces an error:
I thought I was running v 12.1.0 of
Running I see that you are also a member of the electron-api-demos repo. Perhaps you can address this issue there by changing the |
I am a member but not an active contributor.
That seems like a bad idea, because when I increment the major version number, I do so deliberately - per the semantic versioning spec, that's when command line flags can get removed, which can break someone's usage of the CLI. It would be better if someone just version bumped Electron Packager in |
@malept I agree about semver practices, however, there may be another internal reason (unknown to me) not to bump the required major version, which is why I suggested a different operator instead. Which member do you suggest I contact about this since you are unable to address it? |
You should just file a pull request instead of contacting someone. |
@malept So there are no reasons the package is still set to major version 8? Nothing would prohibit the team from accepting a PR to bump it to 12? |
I don't know the answer to that without looking at the project. |
Issue still persists:
MacOs 10.13.6 Node is installed with |
@lukyanov You have an old version installed globally, that's what's running when you just run |
Is Node 11 going to be supported soon? (It was released 3 months ago)
|
Still broken with node 10.11.0 which is the official version used by electron 4.0.0 |
First, the version bundled with Electron has no bearing on the version of Node that is required by Electron Packager to run, unless for some bizarre reason you're using Electron itself to run Electron Packager. Second, as I mentioned several times in this issue: the bug has been fixed in 12.0.2 and above. I'm locking this issue because this is becoming unproductive for me. To reiterate for users who think they cannot run Electron Packager with the latest version of Electron Packager: If you installed Electron Packager in your project (recommended over installing globally):
If that command doesn't print out the version number of Electron Packager, your globally installed version of Electron Packager is too old. If you installed Electron Packager globally: run If you still run into this and you have double-checked that all versions of Electron Packager on your system and projects are 12.0.2 or greater, please file a new issue, making sure to fill out the issue template, and mention the Electron Packager version you installed. |
When packaging my electron app with Node 10 I get the following error in the console.
CANNOT RUN WITH NODE 10.0.0
Electron Packager requires Node 4.0 or above.
In cli.js the check evaluates to [10, 0, 0] < [4, 0, 0] which is true, whereas previously [9, 0, 0] returns as false.
I'll raise a PR now to simplify this check so it continues to work with newer versions of node.
The text was updated successfully, but these errors were encountered: