How to check the built nodejs environments v8 engine version


The V8 engine is used internally by Nodejs, a javascript runtime environment. How to check v8 engine version of installed nodejs environment

Every year, JavaScript introduces new features; to implement these features into a nodejs project, we need to use either babel plugins or a v8 engine version that supports the new javascript features.

This post discusses various methods for showing the V8 version of the Nodejs Environment. The command-line utilities node and npm are included with Nodejs.

**How to check the Node and npm tools version? **

  
D:\>node --version  
v12.14.1  
  
D:\>npm --version  
6.13.4  

Find v8 engine version of installed nodejs environment 

Nodejs comes with a number of binary-dependent versions, with v8 is now one of them. The npm version command shows a list of all dependent components' versions, as shown below.

D:\>npm version  
{  
  npm: '6.13.4',  
  ares: '1.15.0',  
  brotli: '1.0.7',  
  cldr: '35.1',  
  http_parser: '2.8.0',  
  icu: '64.2',  
  llhttp: '2.0.1',  
  modules: '72',  
  napi: '5',  
  nghttp2: '1.40.0',  
  node: '12.14.1',  
  openssl: '1.1.1d',  
  tz: '2019c',  
  unicode: '12.1',  
  uv: '1.33.1',  
  v8: '7.7.299.13-node.16',  
  zlib: '1.2.11'  
}  

Another way is using node -pe command option

D:\>node -pe process.versions  
{  
  node: '12.14.1',  
  v8: '7.7.299.13-node.16',  
  uv: '1.33.1',  
  zlib: '1.2.11',  
  brotli: '1.0.7',  
  ares: '1.15.0',  
  modules: '72',  
  nghttp2: '1.40.0',  
  napi: '5',  
  llhttp: '2.0.1',  
  http_parser: '2.8.0',  
  openssl: '1.1.1d',  
  cldr: '35.1',  
  icu: '64.2',  
  tz: '2019c',  
  unicode: '12.1'  
}  

All this dependent binary versions meta information is stored in the process global object. To get the v8 version with the node command

D:\>node -p process.versions.v8  
7.7.299.13-node.16  

Using REPL command

 REPL is the command-line testing environment to test the nodejs features in the command line. type node command

D:\>node  
Welcome to Node.js v12.14.1.  
Type ".help" for more information.  
> 

Type process.versions.v8 text in prompt

D:\>node  
Welcome to Node.js v12.14.1.  
Type ".help" for more information.  
>                                                                                                                                                               
'7.7.299.13-node.16'  

THE BEST NEWSLETTER ANYWHERE
Join 6,000 subscribers and get a daily digest of full stack tutorials delivered to your inbox directly.No spam ever. Unsubscribe any time.

Similar Posts
Subscribe
You'll get a notification every time a post gets published here.