Node.js is a JavaScript runtime used for building scalable, server-side applications. Installing Node.js on Windows is straightforward, and following the correct steps ensures proper setup and smooth functioning of the Node Package Manager (NPM).
To install Node.js on Other Operating Systems:
[Method 1]: Use the Official Website
Follow these steps to install the Node.js on your Windows:
Step 1: Download Node.js Installer
- Visit the official Node.js website to download the Node.js ".msi" installer

- Download the Windows Installer based on your system architecture (32-bit or 64-bit)
The LTS (Long Term Support) version is recommended for most users since it is more stable, whereas the Current version includes the latest features but may have more frequent updates.
Step 2: Run the Installer
Run the downloaded installer to set up Node.js with the required components on your system.
- Locate the downloaded .msi file and double-click to run the installer.
- Follow the setup wizard, accept the license agreement, and use the default installation settings.
- Select required features such as npm for package management and native modules for building C++ extensions.
Step 3: Finish Setup and Install Node.js and NPM
The installer may prompt you to "install tools for native modules". Select “Install” to complete the process.

Wait for "Finish" to complete the setup.

Step 4: Verify the Installation
Open Command Prompt or PowerShell > Check the installed versions by running these commands:
- Type node -v and press Enter to check the Node.js version.
- Type npm -v and press Enter to check the npm version.
- Both commands should return version numbers, confirming successful installation.
C:\Users\Admin> node -v
Note: You can run the following command, to quickly update the npm
npm install -g npm l // Updates the ‘CLI’ client
[Method 2]: Installation of Node.js using NVM
Node Version Manager or nvm-windows allows users to manage different versions of node.js Here's how you can do it:
Step 1: Install NVM for Windows
Download the latest NVM for Windows installer from the GitHub page. Now run the installer and follow the setup instructions.

Step 2: Install Node.js and NPM
Either you can run the downloaded installer manually and follow the on-screen instructions or run the following command in CMD or PowerShell:
nvm install latest
Note: You can also specify the node.js version by using "nvm install 14.17.6" or you can choose any installed version as a default by using "nvm use 14.17.3"
Step 3: Verify Node Installation
To check the installed version of Node.js, run the following command:
node -vNote: You can use a specific versions by using - nvm use 14.17.6

[Method 3]: Use Windows Subsystem (WSL)
Windows Subsystem for Linux (WSL) is a great option for those who prefer a Linux environment. You can run a Linux distribution on your Windows machine and use Linux tools like apt-get for installation.
Step 1: Open PowerShell
Open PowerShell as Administrator and run the following command:

This will install the WSL feature and the default Ubuntu distribution.
Step 2: Set up a Linux Distribution
Once WSL is installed, launch the Ubuntu (or another Linux distro) app from the Start Menu and set up your Linux distribution by creating a user and password.

Step 3: Install Node.js and NPM via apt
Open the WSL terminal (Ubuntu or your chosen distribution) and update your package list:
sudo apt update
Once the update is done, Install Node.js using the following command:
sudo apt install nodejs
sudo apt install npm
Step 4: Verify Node.js and NPM Installation
Once the installation is complete, verify the installation by entering the following command:
node -v
npm -v
These commands display the installed versions of Node.js and npm.

Note: You can also use nvm (Node Version Manager) within WSL to manage multiple versions of Node.js. Install it with: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
[Method 4]: Install Node.js & NPM using WPM
Windows 10 and 11 users can use winget, the Windows Package Manager, to easily install Node.js.
Step 1: Open PowerShell as Administrator
Right-click on the Start Menu and select Windows PowerShell (Admin).

Step 2: Run the Installation Command
Use the following command to install Node.js:
winget install OpenJS.NodeJS
Step 3: Verify Installation for Node.js and NPM
After installation, check if Node.js is installed correctly:
node -v
npm -v