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.

Fail to run on NodeJS 10. It says "Node 4.0 or above"

See original GitHub issue
  • 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:

Console output when you run electron-packager with the environment variable DEBUG=electron-packager. Please include the stack trace if one exists.

CANNOT RUN WITH NODE 10.5.0
Electron Packager requires Node 4.0 or above.

What command line arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the packager() function?

electron-packager ./app "xxxxx" --out=dist --package-manager=yarn --platform=win32 --arch=x64 --electron-version=1.7.8 --icon=assets/win/xxxxx.ico

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.

I have NodeJS 10.5 installed and I have tried to use yarn build thing to compile some application, however, electron-packager fails. It thinks “10.5” is OLDER than 4.0. What the heck? 🤣

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
pranayreddy123commented, Jan 17, 2019

try to change “electron-packager”: to “^12.1.0” in package,json

and run gradle info build… so that you can see exact issue

0reactions
obendesmondcommented, Nov 7, 2018

You could also update your electron package to 3.0.8 and electron package manager to 12.1.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error npm is known not to run on Node.js v10.24.1 and how to ...
Open you terminal and verify you have the latest version using node -v . Verify your npm version too using npm -v ....
Read more >
Errors | Node.js v19.3.0 Documentation
Unless an application is dynamically generating and running code, ReferenceError instances indicate a bug in the code or its dependencies. Class: SyntaxError #....
Read more >
15 Common Error Codes in Node.js and How to Fix Them
The ETIMEDOUT error is thrown by the Node.js runtime when a connection or HTTP request is not closed properly after some time.
Read more >
Supported node versions for self-hosted installs of Ghost
If you attempt to install Ghost with an unsupported version of Node.js, you may encounter the error ERROR: Unsupported version of Node and/or...
Read more >
Update Node.js solution stack versions in Elastic Beanstalk
Your update might fail if your current node version isn't supported by the node version in the solution stack that you're upgrading or ......
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