To check your Node.js and npm versions, you can use the command line. Node.js comes bundled with npm, so they are typically installed together.
Check Node.js version
Open your terminal or command prompt and run the following command:
node -v
You can also use the longer version of the command:
node --version
The output will be the version number, such as v22.11.0
.
Check npm version
To check the npm version, use the following command in your terminal or command prompt:
npm -v
You can also use this command:
npm --version
The output will be the version number of your npm installation.
0 Comments