Newsletter

How to Install Node.js and NPM on Windows

AngularJs » on Apr 7, 2017 { 4 Comments } By Sivateja

In this article I am going to show you the steps to install Node.js and NPM  [ Node package manager ] in your Windows PC. I am not going to cover anything about Node.js  😉 this is just about installation of Node and NPM and verifying whether the installation was successful or not.

Step 1: Go to https://nodejs.org/en/download/  and click on  Windows Installer

Step 2: It will ask you to Save the installation file  > Click on Save File and choose where you want to save it.

 

Step 3: Open [ double click ] this downloaded file

Step 4: Click on Run  

Click on Next…

check “I accept…” check box and click on Next…

Click on Next…

Click on Next… [ See this is installing NPM as well ]

Click on Install

This will take some time to install Node.js and Node Package Manager [NPM]

Click on finish

That’s it, now you have Node.js and NPM in your Window PC 🙂 but how can we know whether the installation was successful or not ? for that just open command prompt > type the bellow command and hit enter and then it will show you the Node.js version number.

node –version

Similarly to check the NPM version, type the bellow command and hit enter and then it will show you the current NPM version number.

npm -version

Yes we are able to verify the Node.js and NPM version numbers successfully and hence we can conclude the installation was successful. Still have any doubt ? 🙂 ok, lets create a simple .js file and write something in that and run it with node and see.

test.js

console.log(“Node is working..!”);

I have created a .js file with name test.js and written a simple log statement and saved in my desktop. Open command prompt and run it, by typing node test and hit enter, YES its working 🙂 🙂

Yes we did it, we have successfully installed Node.js and NPM in Windows PC 😉

​​

You Might Also Like

  ::. About the Author .::

Java4s_Author
Sivateja Kandula - Java/J2EE Full Stack Developer
Founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog, Love Java and UI frameworks.
You can sign-up for the Email Newsletter for your daily dose of Java tutorials.

Comments

4 Responses to “How to Install Node.js and NPM on Windows”
  1. Himabindu says:

    Hi,

    Please provide angular 2 tutorials.

  2. sunita says:

    Please provide angular 2 tutorials.

  3. tanmaya says:

    Please provide Angular 4 tutorial

  4. Netaji says:

    Plz provide Angular4 tutorial

Name*
Mail*
Website



By posting your answer, you agree to our comments policy.
Most Recent Posts from Top Categories
Spring Boot Hibernate Spring
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2024 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.