Electron Node and Chrome version outdated?

六眼飞鱼酱① 提交于 2019-12-24 10:35:19

问题


I am trying to develop a webgl desktop app, I am just a bit worried about the versions that electron shows.

I currently get this:

But chrome is at version 64 I think since jan 2018? Also my node.js version locally is 9.8.0.

So I was wondering electron comes with it's own nodejs distribution ?


回答1:


Yes, Electron comes with its own bundled version of NodeJS. However, note that neither Electron nor NodeJS are required in order to run apps built in Electron.

As for why the version of NodeJS bundled with Electron is out of date, you need look no further than the official FAQ:

When will Electron upgrade to latest Node.js?

When a new version of Node.js gets released, we usually wait for about a month before upgrading the one in Electron. So we can avoid getting affected by bugs introduced in new Node.js versions, which happens very often.

New features of Node.js are usually brought by V8 upgrades, since Electron is using the V8 shipped by Chrome browser, the shiny new JavaScript feature of a new Node.js version is usually already in Electron.



来源:https://stackoverflow.com/questions/49395616/electron-node-and-chrome-version-outdated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!