如何更新版本的v8(Javascript)与我的NodeJS一起安装?

时间:2021-11-26 06:57:36

Need to upgrade only Javascript engine version only to 6.x from 3.x. Is it possible without upgrading nodejs version? Current node version is 0.12.x

需要仅从3.x升级Javascript引擎版本至6.x.是否可以在不升级nodejs版本的情况下使用?当前节点版本为0.12.x

1 个解决方案

#1


3  

Usually, I would recommend using udpate-v8

通常,我建议使用udpate-v8

npm install -g update-v8 

However, if you use Node.js 0.x, it will not be compatible, as it requires Node.js 7.6.0 or higher.

但是,如果使用Node.js 0.x,它将不兼容,因为它需要Node.js 7.6.0或更高版本。


Do you realize that you are at least 8 major versions behind the latest version of Node.js? This a huge security risk, to say the least.

您是否意识到最新版本的Node.js背后至少有8个主要版本?至少可以说这是一个巨大的安全风险。

You will also get a lost of bug fixes and performance improvement.

您还将获得错误修复和性能改进。

You are not explaining while you are staying with this old version. To me, this does not sound like a sane idea.

在您使用这个旧版本时,您没有解释。对我来说,这听起来不是一个理智的想法。


Probably V8 version 6.x is not compatible with node v0.12, though I don't find a suitable citation for that.

可能V8版本6.x与节点v0.12不兼容,但我找不到合适的引用。

Version 5.4 of V8 was introduced in version 7 of Node.js (see for instance this blog infoQ post ).

版本5.4的V8是在Node.js的第7版中引入的(参见例如此博客infoQ帖子)。

It's not telling it's incompatible, but knowing all the changes that happened since the early releases of Node, in EcmaScript / JS and other related standards, I'd rather work towards upgrading node/npm as a priority if I were you.

它并不是说它不兼容,但是知道自Node早期版本以来发生的所有变化,在EcmaScript / JS和其他相关标准中,如果我是你,我宁愿将node / npm升级为优先级。

#1


3  

Usually, I would recommend using udpate-v8

通常,我建议使用udpate-v8

npm install -g update-v8 

However, if you use Node.js 0.x, it will not be compatible, as it requires Node.js 7.6.0 or higher.

但是,如果使用Node.js 0.x,它将不兼容,因为它需要Node.js 7.6.0或更高版本。


Do you realize that you are at least 8 major versions behind the latest version of Node.js? This a huge security risk, to say the least.

您是否意识到最新版本的Node.js背后至少有8个主要版本?至少可以说这是一个巨大的安全风险。

You will also get a lost of bug fixes and performance improvement.

您还将获得错误修复和性能改进。

You are not explaining while you are staying with this old version. To me, this does not sound like a sane idea.

在您使用这个旧版本时,您没有解释。对我来说,这听起来不是一个理智的想法。


Probably V8 version 6.x is not compatible with node v0.12, though I don't find a suitable citation for that.

可能V8版本6.x与节点v0.12不兼容,但我找不到合适的引用。

Version 5.4 of V8 was introduced in version 7 of Node.js (see for instance this blog infoQ post ).

版本5.4的V8是在Node.js的第7版中引入的(参见例如此博客infoQ帖子)。

It's not telling it's incompatible, but knowing all the changes that happened since the early releases of Node, in EcmaScript / JS and other related standards, I'd rather work towards upgrading node/npm as a priority if I were you.

它并不是说它不兼容,但是知道自Node早期版本以来发生的所有变化,在EcmaScript / JS和其他相关标准中,如果我是你,我宁愿将node / npm升级为优先级。