问题描述
我正在尝试开发一个webgl桌面应用程序,我只是有点担心电子版所显示的版本。
I am trying to develop a webgl desktop app, I am just a bit worried about the versions that electron shows.
我现在知道了:
但是Chrome浏览器的版本为64,我认为自2018年1月以来?
另外,我本地的node.js版本是9.8.0。
But chrome is at version 64 I think since jan 2018?Also my node.js version locally is 9.8.0.
所以我想知道电子是它自己的nodejs发行版吗?
So I was wondering electron comes with it's own nodejs distribution ?
推荐答案
是的,Electron带有自己的捆绑版NodeJS。但是,请注意,运行运行Electron内置的应用程序不需要Electron或NodeJS。
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.
对于为什么捆绑的NodeJS版本Electron已过时,您只需要 :
As for why the version of NodeJS bundled with Electron is out of date, you need look no further than the official FAQ:
Node.js的新功能通常由V8升级带来,因为Electron正在使用Chrome浏览器提供的V8,新的Node.js版本的闪亮JavaScript新功能通常已经在Electron中。
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.
这篇关于电子节点和Chrome版本已过时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!