How to Check Your Node.js Version
Oct 2, 2020
The easiest way to check what version of Node.js you're using is to run
node --version
from your terminal. This will print your version of Node.js
as shown below.
$ node --version
v10.16.3
$
You can also get the currently running version of Node.js from Node.js'
built-in process.version
property.
// `process` is a built-in global in Node.js, no need to `require()`
console.log(process.version); // 'v10.16.3'
Did you find this tutorial useful? Say thanks by starring our repo on GitHub!
More Node Tutorials
- Getting Started with Oso Authorization in Node.js
- Check if a File Exists in Node.js
- How To Fix "__dirname is not defined" Error in Node.js
- Working with UUID in Node
- Using bcrypt-js to Hash Passwords in JavaScript
- Working with the Node.js assert Library
- Modify Authorized redirect_uris For Google OAuth