I'm a bit confused as to how Node.js gets access to libv8.
I downloaded the 64-bit "Linux Binaries (.tar.xz)" for version 6.5.0 of Node.js and extracted them to /opt
on my Debian Linux machine. When I run node -e "console.log(process.versions.v8)"
, I get 5.1.281.81
, which is the recent version of V8 I would expect to see running with Node 6.5.0. However, when I look at Synaptic Package Manager in Debian, its nodejs
package has a dependency on the libv8-3.14.5
package; a much older version of V8.
So which is it - does Node use the installed libv8 (the package manager indicates that 3.14.5 is installed on my machine) or does V8 come bundled with Node.js? Is it compiled into the node
binary? If so, why does the package manager have the libv8
dependency?