To check the installed version of Node.js on your system, you can use the following methods:
Command Line/ Terminal: Open your command line or terminal and type the following command:
bashnode -v
This will print the installed Node.js version.
bashv14.17.0
Additionally, you can also check the installed npm (Node Package Manager) version:
bashnpm -v
This will print the installed npm version.
bash6.14.13
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:
javascriptconsole.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.