How to check the installed version of Node.js



Image not found!!

To check the installed version of Node.js on your system, you can use the following methods:

  1. Command Line/ Terminal: Open your command line or terminal and type the following command:

    bash
    node -v

    This will print the installed Node.js version.

    bash
    v14.17.0

    Additionally, you can also check the installed npm (Node Package Manager) version:

    bash
    npm -v

    This will print the installed npm version.

    bash
    6.14.13
  2. Node.js REPL (Read-Eval-Print Loop): You can also check the Node.js version from the Node.js REPL. Open your command line or terminal and type node to start the REPL. Once in the REPL, type:

    javascript
    console.log(process.version);

    This will print the Node.js version.

    bash
    'v14.17.0'

Choose the method that suits your preference and workflow. The command line option is commonly used and provides a quick way to check the installed version.