In this tutorial, we are going to learn about how to check the currently installed node.js version in our system.
Inside the terminal, we can check the node version by running the
node --version command or
➜ node --version v12.14.1
➜ node -v v12.14.1
If you want to programmatically access the node version inside an app, you get it by using the
const nodeVersion = process.version; console.log(nodeVersion); // 'v12.14.1'
It returns the node version in a