How to Download and Install Node.js and NPM
Last Updated : 23 Apr, 2025
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).
Official WebsiteInstalling 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.
Setup WizardStep 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.”
LicenseStep 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- Or, if you wish to perform "Custom Setup", click on Change and choose your desired path.
- Then, select “Next”
Custom SetupStep 5: Get the System Ready to Complete the Setup
The installer may prompt you to “install tools for native modules”.
System Ready- Do not close or cancel the installer until the installation is complete.
- Complete the NodeJS Setup Wizard.
- Click “Finish.”
How to Download and Install Node.js and NPMStep 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.
npm -v
This command will display the installed version of NPM.
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.
Similar Reads
How to Install Node.js and npm on Ubuntu?
If you're developing JavaScript applications on Ubuntu, knowing how to install Node.js on Ubuntu is essential. Node.js is a powerful runtime environment that enables server-side scripting, while npm, the Node Package Manager, allows you to manage your project's dependencies easily. This guide will w
7 min read
How to Install NPM FS in Node JS ?
The file system module allows you to work with the file system on your computer NodeJS includes the fs module, to communicate with file systems. It provides functionality for interacting with the file system, such as reading from and writing to files, creating and removing directories, etc. The File
4 min read
How To YUM Install Node.JS On Amazon Linux ?
yum stands for Yellowdog Updater Modified is a package manager utility for Red Hat-compatible Linux operating systems. just like 'apt' used for Ubuntu distribution yum is used to install, update, and remove software packages. yum simplifies the process of installing software packages and ensures tha
3 min read
How to Download and Install Visual Studio Code on Ubuntu?
Visual Studio Code is a code editor that is basically used for web development or cloud platforms, but nowadays Visual Studio Code can do a lot. It is stated as the second most used code editor by developers in 2022 so if you are an aspiring IT student or a developer you should know how to use Visua
1 min read
How to Install Node.js on Linux
Installing Node.js on a Linux-based operating system can vary slightly depending on your distribution. This guide will walk you through various methods to install Node.js and npm (Node Package Manager) on Linux, whether using Ubuntu, Debian, or other distributions. PrerequisitesA Linux System: such
6 min read
How to Install Node.js on a Webserver ?
Node.js is a powerful, lightweight, and efficient runtime for executing JavaScript code on the server side. It is particularly well-suited for building scalable network applications. Installing Node.js on a web server enables developers to run server-side JavaScript, host web applications, and serve
2 min read
How to Install Node & Run NPM in VS Code?
Node.js is an open-source, server-side JavaScript runtime environment built on the V8 engine. It allows developers to execute JavaScript code outside of a web browser. In this article, we will see how to install Node.js and NPM and install packages in VS Code using NPM. Steps to Install NodeJS and N
2 min read
How to Install Node.js on Windows
Installing Node.js on Windows is a straightforward process, but it's essential to follow the right steps to ensure smooth setup and proper functioning of Node Package Manager (NPM), which is crucial for managing dependencies and packages. This guide will walk you through the official site, NVM, Wind
6 min read
How to Install NodeJS on MacOS
Node.js is a popular JavaScript runtime used for building server-side applications. Itâs cross-platform and works seamlessly on macOS, Windows, and Linux systems. In this article, we'll guide you through the process of installing Node.js on your macOS system. What is Node.jsNode.js is an open-source
7 min read
Difference between npm install and npm update in Node.js
NPM is like a powerhouse for Node.js that contains all the necessary modules for the smooth running of the node.js application. It gets installed on our machine when we install Node.js on our Windows, Linux or MAC OS. How to install Node on the machine? Refer to this article. NPM has 580096 register
5 min read