---
description: "How to Download and Install Node.js and NPM on Windows: In this tutorial, you will learn how to install Node.js on Windows and Installing NPM (Node Package Manager) on Windows."
title: How to Download &#038; Install Node.js and NPM on Windows
image: https://www.guru99.com/images/download-and-install-node-js-and-npm.png
---

[Skip to content](#main)

**⚡ Smart Summary**

Node.js installation on Windows uses the official MSI installer or the Chocolatey package manager, both of which bundle NPM. After setup, a simple HTTP server script confirms the runtime serves a Hello World response in the browser.

- 🪟 **Windows Installer:** The MSI installer from nodejs.org installs Node.js and NPM together.
- 📦 **Chocolatey:** The Windows package manager installs Node.js with a single PowerShell command.
- ⚙️ **Hello World:** A require(‘http’) server listens on port 8080 and returns a response.
- 🔢 **Version Check:** Running node -v and npm -v confirms the installed versions.
- 🐧 **WSL2 Option:** Microsoft recommends Node.js on WSL2 for Linux-style development workflows.
- 🤖 **AI Setup:** AI assistants generate install commands and starter server scripts quickly.

Read More

![Download and Install Node.js and NPM on Windows](https://www.guru99.com/images/download-and-install-node-js-and-npm.png)

To start building your Node.js applications, the first step is the installation of the Node.js framework. The Node.js framework is available for a variety of operating systems right from Windows to Ubuntu and OS X. Once the Node.js framework is installed, you can start building your first Node.js applications.

Node.js also has the ability to embed external or extended functionality by making use of custom modules. These modules have to be installed separately. An example of a module is the [MongoDB](https://www.guru99.com/mongodb-tutorials.html) module, which allows you to work with MongoDB databases from your Node.js application.

## How to Install Node.js on Windows

The first step in using Node.js is the installation of the Node.js libraries on the client system. Below are the steps to download and install Node.js in Windows:

**Step 1)** Download Node.js Installer for Windows.

Go to the site https://nodejs.org/en/download/ and download the necessary binary files. In our example, we are going to download Node.js on Windows with the 32-bit setup files.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns1.png)

**Step 2)** Run the installation. Double click on the downloaded .msi file to start the installation. Click the Run button on the first screen to begin the installation.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns2.png)

**Step 3)** In the next screen, click the “Next” button to continue with the Node.js download and installation.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns3.png)

**Step 4)** Accept the terms and conditions. In the next screen, accept the license agreement and click on the Next button.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns4.png)

**Step 5)** Set up the path. In the next screen, choose the location where Node.js needs to be installed and then click on the Next button.

1. First, enter the file location for the installation of Node.js. This is where the files for Node.js will be stored after the installation.
2. Click on the Next button to proceed ahead with the installation.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns5.png)

**Step 6)** Select the default components to be installed. Accept the default components and click on the Next button.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns6.png)

**Step 7)** Start the installation. In the next screen, click the Node.js install button to start installing on Windows.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns7.png)

**Step 8)** Complete the installation. Click the Finish button to complete the installation.

[![Install Node.js on Windows]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns8.png)

**Note:** Windows now recommends that developers use Node.js with [WSL2](https://docs.microsoft.com/en-us/windows/nodejs/setup-on-wsl2) (the Windows Subsystem for Linux) for Linux-style development workflows.

**Don't Miss:**

- [Node.js NPM Tutorial: How to Create, Extend, Publish modules](https://www.guru99.com/node-js-modules-create-publish.html)
- [Create HTTP Web Server in Node.js with Code Example](https://www.guru99.com/node-js-create-server-get-data.html)
- [Node.js Express.js FrameWork Tutorial](https://www.guru99.com/node-js-express.html)
- [Bluebird NPM: Bluebird JS Promise with Example](https://www.guru99.com/bluebird-promises.html)

## How to Install NPM on Windows 10/8/7

The other way to install Node.js on any client machine is to use a “package manager.” On Windows, the NPM (Node Package Manager) download is known as Chocolatey. It was designed to be a decentralized framework for quickly installing applications and tools that you need.

For installing NPM on Windows via Chocolatey, the following steps need to be performed.

**Step 1)** Installing Chocolatey – The [Chocolatey website](https://chocolatey.org/) has very clear instructions on how this framework needs to be installed.

- The first step is to run the below command in the command prompt window. This command is taken from the Chocolatey website and is the standard command for installing Node.js via Chocolatey.
- The below command is a PowerShell command which calls the remote PowerShell script on the Chocolatey website. This command needs to be run in a PowerShell command window.
- This PowerShell script does all the necessary work of downloading the required components and installing them accordingly.

```
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
```

[![Install NPM on Windows 10/8/7]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns9.png)

**Step 2)** The next step is to install Node.js to your local machine using the Chocolatey package manager. This can be done by running the below command in the command prompt.

[![Install NPM on Windows 10/8/7]()](https://www.guru99.com/images/NodeJS/010716_0458_DownloadIns10.png)

If the installation is successful, you will get the message of the successful installation of Node.js.

**Note:** If you get an error like “C:\\ProgramData\\chocolatey\\lib\\libreoffice\\tools\\chocolateyInstall.ps1”, then manually create the folder in the path.

**Don't Miss:**

- [Node.js NPM Tutorial: How to Create, Extend, Publish modules](https://www.guru99.com/node-js-modules-create-publish.html)
- [Create HTTP Web Server in Node.js with Code Example](https://www.guru99.com/node-js-create-server-get-data.html)
- [Node.js Express.js FrameWork Tutorial](https://www.guru99.com/node-js-express.html)
- [Bluebird NPM: Bluebird JS Promise with Example](https://www.guru99.com/bluebird-promises.html)

## Running your first Hello World application in Node.js

Once you have Node.js downloaded and installed on your computer, let us try to display “Hello World” in a web browser. Create a Node.js file with the file name firstprogram.js.

```
var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end('Hello World!');
}).listen(8080);
```

**Code Explanation:**

1. The basic functionality of the “require” function is that it reads a [JavaScript](https://www.guru99.com/interactive-javascript-tutorials.html) file, executes the file, and then proceeds to return an object. Using this object, one can then use the various functionalities available in the module called by the require function. So in our case, since we want to use the functionality of HTTP, we are using the require(http) command.
2. In this 2nd line of code, we are creating a server application which is based on a simple function. This function is called whenever a request is made to our server application.
3. When a request is received, we are asking our function to return a “Hello World” response to the client. The writeHead function is used to send header data to the client, while the end function closes the connection to the client.
4. We are then using the server.listen function to make our server application listen to client requests on port no 8080. You can specify any available port here.

**Executing the code**

1. Save the file on your computer: C:\\Users\\Your Name\\firstprogram.js
2. In the command prompt, navigate to the folder where the file is stored. Enter the command Node firstprogram.js.

[![First Hello World Application in Node.js]()](https://www.guru99.com/images/NodeJS/Helloword_nodejs_v1.png)

1. Now, your computer works as a server! If anyone tries to access your computer on port 8080, they will get a “Hello World!” message in return.
2. Start your internet browser, and type in the address: http://localhost:8080

**Output:**

[![First Hello World Application in Node.js]()](https://www.guru99.com/images/NodeJS/Helloword_nodejs_v2.png)

## FAQs

🔢 What is the difference between Node.js and NPM?

Node.js is the runtime that executes JavaScript outside the browser. NPM (Node Package Manager) installs and manages packages. Installing Node.js also installs NPM automatically.

⚙️ How do I check the Node.js and NPM version?

Open Command Prompt and run node -v to print the Node.js version, then run npm -v to print the NPM version installed on your machine.

🆚 Should I install the LTS or Current version?

Choose LTS (Long Term Support) for most projects because it is stable and maintained longer. Pick Current only when you need the newest experimental features.

🐧 Can I install Node.js on WSL2 or Linux?

Yes. Microsoft recommends running Node.js on WSL2 for Linux-style workflows. Install a Linux distribution, then use a version manager such as nvm to install Node.js.

🔄 Do I need a version manager like nvm-windows?

A version manager such as nvm-windows lets you switch between multiple Node.js versions per project. Remove any existing installation first to avoid conflicts.

📦 Do I need to install NPM separately?

No. The official Node.js MSI installer bundles NPM, so it installs automatically with Node.js. You can later update it by running npm install -g npm.

🤖 Can AI tools help install and set up Node.js?

Yes. AI assistants such as ChatGPT generate the correct install commands for Windows, explain PATH errors, and produce starter scripts, which speeds up first-time setup.

🤖 Can GitHub Copilot write a Node.js Hello World server?

Yes. GitHub Copilot autocompletes a require(‘http’) server that listens on a port and returns a Hello World response, letting you test the installation in seconds.

#### Summarize this post with:

ChatGPTPerplexityGrokGoogle AI

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.**

##### Sign up for the newsletter

Subscribe for Free

You have successfully subscribed.  
Please check your inbox.

![AI-Newsletter]() Chosen by over **350,000+** professionals

[Scroll to topScroll to top](#wrapper) Scroll to top

×

Toggle Menu Close

Search for:

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/download-and-install-node-js-and-npm.png","url":"https://www.guru99.com/images/download-and-install-node-js-and-npm.png","width":"700","height":"250","caption":"Download &amp; Install Node.js and NPM","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/download-install-node-js.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/node-js","name":"Node-JS"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/download-install-node-js.html","name":"How to Download &#038; Install Node.js and NPM on Windows"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/download-install-node-js.html#webpage","url":"https://www.guru99.com/download-install-node-js.html","name":"How to Download &#038; Install Node.js and NPM on Windows","dateModified":"2026-07-01T11:46:17+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/download-and-install-node-js-and-npm.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/download-install-node-js.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/james","name":"James Hartman","description":"I am James Hartman, a seasoned professional in Oracle Certified Java Professional tutorials, specializing in crafting comprehensive guides to help you excel in your Java certification journey.","url":"https://www.guru99.com/author/james","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","url":"https://www.guru99.com/images/james-hartman-author-v2-120x120.png","caption":"James Hartman","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Node-JS","headline":"How to Download &#038; Install Node.js and NPM on Windows","description":"How to Download and Install Node.js and NPM on Windows: In this tutorial, you will learn how to install Node.js on Windows and Installing NPM (Node Package Manager) on Windows.","keywords":"nodejs","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/james","name":"James Hartman"},"dateModified":"2026-07-01T11:46:17+05:30","image":{"@id":"https://www.guru99.com/images/download-and-install-node-js-and-npm.png"},"copyrightYear":"2026","name":"How to Download &#038; Install Node.js and NPM on Windows","subjectOf":[{"@type":"HowTo","name":"How to Install Node.js on Windows","description":"The first step in using Node.js is the installation of the Node.js libraries on the client system. Below are the steps to download and install Node.js in Windows:","step":[{"@type":"HowToStep","name":"Step 1) Download Node.js Installer for Windows","text":"Go to the site https://nodejs.org/en/download/ and download the necessary binary files.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns1.png"},"url":"https://www.guru99.com/download-install-node-js.html#step1"},{"@type":"HowToStep","name":"Step 2) Run the installation","text":"Double click on the downloaded .msi file to start the installation.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns2.png"},"url":"https://www.guru99.com/download-install-node-js.html#step2"},{"@type":"HowToStep","name":"Step 3) Continue with the installation steps","text":"In the next screen, click the 'Next' button to continue with the installation","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns3.png"},"url":"https://www.guru99.com/download-install-node-js.html#step3"},{"@type":"HowToStep","name":"Step 4) Accept the terms and conditions","text":"In the next screen, Accept the license agreement and click on the Next button.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns4.png"},"url":"https://www.guru99.com/download-install-node-js.html#step4"},{"@type":"HowToStep","name":"Step 5) Set up the path","text":"In the next screen, choose the location where Node.js needs to be installed and then click on the Next button.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns5.png"},"url":"https://www.guru99.com/download-install-node-js.html#step5"},{"@type":"HowToStep","name":"Step 6) Select the default components to be installed","text":"Accept the default components and click on the Next button.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns6.png"},"url":"https://www.guru99.com/download-install-node-js.html#step6"},{"@type":"HowToStep","name":"Step 7) Start the installation","text":"In the next screen, click the Install button to start installing Node.js on Windows.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns7.png"},"url":"https://www.guru99.com/download-install-node-js.html#step7"},{"@type":"HowToStep","name":"Step 8) Complete the installation","text":"Click the Finish button to complete the installation.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/NodeJS/010716_0458_DownloadIns8.png"},"url":"https://www.guru99.com/download-install-node-js.html#step8"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is the difference between Node.js and NPM?","acceptedAnswer":{"@type":"Answer","text":"Node.js is the runtime that executes JavaScript outside the browser. NPM (Node Package Manager) installs and manages packages. Installing Node.js also installs NPM automatically."}},{"@type":"Question","name":"How do I check the Node.js and NPM version?","acceptedAnswer":{"@type":"Answer","text":"Open Command Prompt and run node -v to print the Node.js version, then run npm -v to print the NPM version installed on your machine."}},{"@type":"Question","name":"Should I install the LTS or Current version?","acceptedAnswer":{"@type":"Answer","text":"Choose LTS (Long Term Support) for most projects because it is stable and maintained longer. Pick Current only when you need the newest experimental features."}},{"@type":"Question","name":"Can I install Node.js on WSL2 or Linux?","acceptedAnswer":{"@type":"Answer","text":"Yes. Microsoft recommends running Node.js on WSL2 for Linux-style workflows. Install a Linux distribution, then use a version manager such as nvm to install Node.js."}},{"@type":"Question","name":"Do I need a version manager like nvm-windows?","acceptedAnswer":{"@type":"Answer","text":"A version manager such as nvm-windows lets you switch between multiple Node.js versions per project. Remove any existing installation first to avoid conflicts."}},{"@type":"Question","name":"Do I need to install NPM separately?","acceptedAnswer":{"@type":"Answer","text":"No. The official Node.js MSI installer bundles NPM, so it installs automatically with Node.js. You can later update it by running npm install -g npm."}},{"@type":"Question","name":"Can AI tools help install and set up Node.js?","acceptedAnswer":{"@type":"Answer","text":"Yes. AI assistants such as ChatGPT generate the correct install commands for Windows, explain PATH errors, and produce starter scripts, which speeds up first-time setup."}},{"@type":"Question","name":"Can GitHub Copilot write a Node.js Hello World server?","acceptedAnswer":{"@type":"Answer","text":"Yes. GitHub Copilot autocompletes a require('http') server that listens on a port and returns a Hello World response, letting you test the installation in seconds."}}]}],"@id":"https://www.guru99.com/download-install-node-js.html#schema-21893","isPartOf":{"@id":"https://www.guru99.com/download-install-node-js.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/download-install-node-js.html#webpage"}}]}
```
