How to Install Node.js® and NPM on Windows

How to Install Node .js® and NPM on Windows

This article will show you step by step on How to Install Node.Node.js is a javascript framework.Javascript is a web application programming language  that is becoming popular among web developers.

JavaScript is used in front end to develop friendly user interfaces  that communicate to back end using Ajax.Developers are turning to JavaScript due to its efficiency and performance speed which is great.

No blocking of process in Node.Services can run concurrently without having to interfere with one another and this is because Node.js does not perform input and output process directly.

As a developer,its good to master one language that will enable you to deliver a full stack web application. Node.js can also be used to develop desktop applications.Also Node.js comes with tools for deploying websites and developing them.

Steps to How to Install Node .js

Getting started with Node.js is pretty easy.You just need to Install it using Installer package that is straightforward.

  1.  First you need to Download Node.js
  2. Click on the Install to run (.msi) file that you have already downloaded.
  3. Follow prompts given by the installer.Click next as show below.



How to Install Node.js® and NPM on Windows

4.After completing the steps you will need to restart the computer.You will not be able to run Node.js until the computer is restarted.

How to test if Node .js® and NPM  are Installed.

Next step after Installing Node.js is to test if they are working.

  • Test Node-To check if Node has been Installed,Open Command prompt by typing CMD on search text.Type  node -v .This command should print Node version  like this one v0.10.35
  • Test NPM-this is the next test.Type npm -v on the same command prompt.If everything is okay,the output should be like 1.4.28
  • Create a test file and run it-You can also text node.js  by creating a file and naming it hello.js. In the javascript file add this code console.log(‘Node is installed!’);.Run the code in the file by typing  node hello.js. Output should be  “Node is installed!.”

Below is a caption of all the tests.How to Install Node .js® and NPM on Windows

If this article helped you don’t forget to hit the share button.