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

- 2,314
- 3
- 16
- 32

- 875
- 8
- 33
-
4No, it's not possible. – Jul 31 '18 at 04:53
-
@torazaburo do you have a source or explanation as per why you say it's impossible ? (That would make a good answer) – Pac0 Jul 31 '18 at 04:58
-
1I'm curious: why do you need to do this? – AKX Jul 31 '18 at 05:14
-
1[Node 0.12.x reached end-of-life 1.5 years ago.](https://github.com/nodejs/Release#end-of-life-releases) Why do you need to continue using an unsupported version of Node? – Jonathan Lonowski Jul 31 '18 at 05:41
-
1The engine version is burned into each node version. One of the primary features of each new node version is a new version of the engine. Asking to change the version is roughly like asking to put a Rolls-Royce jet engine into your volkswagen bug. You can't do it. If you could, then it would probably break whatever you were trying to accomplish by staying with the obsolete node version anyway, which was what exactly? – Jul 31 '18 at 10:54
-
Need to add a plugin support that runs on Node 7.X to a Node 0.12.x project. Its complicated to update existing project to latest version – Sharavanakumaar Murugesan Aug 01 '18 at 05:48
-
1@SharavanakumaarMurugesan Maybe you could make it work with some new application with Node 7+ that wraps the old one. Unfortunately, keeping an old app with unmaintained engine and libraries will cause you this kind of problems each time you want to add something new :/ . Good luck! – Pac0 Aug 08 '18 at 08:02
1 Answers
Usually, I would recommend using 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.
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.
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.
Version 5.4 of V8 was introduced in version 7 of Node.js (see for instance this blog infoQ post ).
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.

- 21,465
- 8
- 65
- 74