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 -vYou can also use the longer version of the command:
node --versionThe 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 -vYou can also use this command:
npm --versionThe output will be the version number of your npm installation.
0 Comments