Summary
To check your Node version, enter the following command in your terminal:
node -v
To check your npm version, enter the following command in your terminal:
npm -v
Details
After entering either of the above commands, you should see a version number print out.
If you have Node installed and enter the node -v
command, you should see something similar to the following print out (your version number may be different):
v10.16.0
If you have npm installed and enter the npm -v
command, you should see something similar to the following print out (your version number may be different):
6.9.0
Exercises
Run node -v
and npm -v
in your terminal.
Reference
Checking your version of npm and Node.js | npm Documentation