How To Check Node.js Version?

The Node.js is a popular JavaScript-based environment that is used to create web applications. Node.js can be used for the server-side implementation of the web applications as well as for installing and managing the JavaScript libraries used on the server-side and client-side.

Check Node.js Version On Linux and Windows

After installing the Node.js different tools and commands are provided. The node command is the most powerful and used command to manage Node.js. The node command can be used to check and display the Node.js version. The node command can be used for both Linux and Windows operating systems in the same way.

$ node -v
> node -v

Alternatively the long version of the -v option can be used which is --version .

$ node --version
> node --version
Check Node.js Version On Linux and Windows

Check Npm (Node Package Manager) Version On Linux and Windows

The Npm or Node Package Manager is also installed with the Node.js by default. The Npm is used to manage JavaScript packages. The Npm is used with the npm command and also it has a version. The npm command version can be listed with the -v option below.

$ node -v
> node -v
Check Npm (Node Package Manager) Version On Linux and Windows

Leave a Comment