node.js - How do I get the nodejs version inside a nodejs program? -


in debugger nodejs, there command show v8 version , debugger package version. how can nodejs version?

i imagine can run command node --version or nodejs --version, i'm hoping there way without running external shell command – not slower but, depending on paths, might give different answer.

use process.version version of node running:

console.log('node version is: ' + process.version); 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -