Open In App

How to Download and Install Node.js and NPM

Last Updated : 23 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

NodeJS and NPM (Node Package Manager) are essential tools for modern web development. NodeJS is the runtime environment for JavaScript that allows you to run JavaScript outside the browser, while NPM is the package manager that helps manage libraries and code packages in your projects.

To run a Node.js project on your system, you first need to install Node.js and NPM. Once installed, you can use the Node.js runtime to execute JavaScript code and NPM to manage project dependencies and packages.

Note: We do not need to download NodeJS and NPM separately. When we install NodeJS, NPM (Node Package Manager) is installed automatically along with it.

How to download and install NodeJS and NPM

Follow the below given steps below to download and install NodeJS and npm on your system:

Step 1: Download the package from its Official Website

Go to the official NodeJS website.

You will see two main download options:

  • LTS (Long-Term Support): This version is recommended for most users, especially for production environments, as it is stable and receives long-term updates.
  • Current: This version includes the latest features but may not be as stable as the LTS version.
  • Click on the version you wish to download. The website will automatically detect your operating system and recommend the appropriate version (Windows, macOS, or Linux).
nodejs
Official Website

Installing NodeJS is the first step towards building scalable web applications. 

Step 2: Install NodeJS and NPM

Now you need to install the NodeJS installer on your system. You need to follow the following steps for NodeJS to be installed.

  • Double-click on the .msi installer. The NodeJS Setup wizard will open.
  • Welcome To NodeJS Setup Wizard.
  • Now, select “Next” to proceed.
node2j
Setup Wizard

Step 3: Finish Setting up

Go through the terms and license carefully before finishing up the setup.

  • After clicking “Next”, the End-User License Agreement (EULA) will open.
  • Check “I accept the terms in the License Agreement.”
  • Select “Next.”
EULA
License

Step 4: Set Download Path

At last, it will ask for a "Destination Folder" where all the files and their utility will be saved, provide the path where you want to install NodeJS and then click on NEXT.

setup
Setup
  • Or, if you wish to perform "Custom Setup", click on Change and choose your desired path.
  • Then, select “Next”
setup2
Custom Setup

Step 5: Get the System Ready to Complete the Setup

The installer may prompt you to “install tools for native modules”.

  • Select “Install”
ready
System Ready
  • Do not close or cancel the installer until the installation is complete.
  • Complete the NodeJS Setup Wizard.
  • Click “Finish.”
Screenshot-(264)
How to Download and Install Node.js and NPM

Step 6: Verify the Installation

Once the installation is complete, you can verify that both NodeJS and NPM are installed correctly by running the following commands in your terminal or command prompt:

  • Verify NodeJS Installation:
node -v

This command will display the installed version of NodeJS.

  • Verify NPM Installation:
npm -v

This command will display the installed version of NPM.

Screenshot-2025-04-23-151535
Node and npm

If both commands return the version numbers, it means that NodeJS and NPM are successfully installed on your system.

Start creating your NodeJS application.

Conclusion

That’s it! You've successfully installed NodeJS and NPM on your system, and you're ready to start building and managing NodeJS projects. With NPM, you can easily install third-party libraries, manage dependencies, and work on large-scale JavaScript projects.


Next Article

Similar Reads