Installing Node.js is pretty straightforward. Go to https://nodejs.org/en/download/ and choose an appropriate OS and platform that is applicable to you. Once you have successfully installed Node.js, verify that you both the node and the npm (node package manager) are working properly. Execute the following commands and verify the output.
To check the node version, execute the following command:
node -v
To check the npm version, execute the following command:
npm -v
You will have an output somewhat similar to the following screenshot: