Installing Node.js

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:

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.