amirhosein
amirhosein

Reputation: 73

upgrading node for electron

I am creating an app using electron framework but when I'm trying to use async functions it gives me an error. Because my electron uses node version 6.5.0 but node in this version doesn't support async functions.

So I am trying to upgrade my electron's node but I don't know how to create a branch or stuff like that since https://electronjs.org/docs/development/upgrading-node is the only link I found to explain this matter but I can't understand it. Can I upgrade node in my electron framework in another way?

Upvotes: 2

Views: 1603

Answers (1)

OJ Kwon
OJ Kwon

Reputation: 4661

Can I upgrade node in my electron framework in another way

No, you cannot. Electron links a specific version of node with chromium in its build time, so each version of electron have a fixed version of node.js and cannot be replaced dynamically.

Either use a higher version of the electron have higher node.js version, try to manually build electron yourself is the only way to go.

Upvotes: 2

Related Questions