How to Install Node.js and NPM on Windows?
NPM
The Node Package Manager (NPM) by default is used with NodeJs. In essence, NodeJs is a JavaScript runtime environment that enables programmers to create scalable applications in a predetermined amount of time.
Open-source web developers can share and borrow packages with NPM to create apps. Additionally, it functions as a command-line utility for the application to install packages in the project, manage dependencies, and even manage versions.
You can find packages from the official NPM website
NodeJS
An open-source, cross-platform runtime environment for JavaScript is called NodeJS. It can be used to run web applications not through the client's browser. Node.js was created in 2009 by Ryan Dahl, and the most recent version, v18, was made available in October of 2022. This IDE is the greatest choice for building data-intensive apps since it uses an asynchronous, event-driven approach, which is how server-side web apps are developed.
Install Node.js and NPM on Windows
Step 1: Download the Installer
Download the Windows Installer from NodeJs official website. Make sure you have downloaded the latest version of NodeJs. It includes the NPM package manager.
The LTS (Long-term Support) version is highly recommended for you. After the download of the installer package, install it with a double-click on it.
Now .msi file will be downloaded to your browser. Choose the desired location for that.
Step 2: Install Node.js and NPM
After choosing the path, double-click to install .msi binary files to initiate the installation process. Then give access to run the application.
You will get a welcome message on your screen and click the “Next” button. The installation process will start. Choose the desired path where you want to install Node.js.
By clicking on the Next button, you will get a custom page setup on the screen. Make sure you choose npm package manage , not the default of Node.js runtime . This way, we can install Node and NPM simultaneously.
You should have 143MB of space to install Node.js and npm features
The following features will be installed by default:
- Node.js runtime
- Npm package manager
- Online documentation shortcuts
- Add to Path
Step 3: Check Node.js and NPM Version
If you have a doubt whether you have installed everything correctly or not, let’s verify it with “Command Prompt”.
To confirm Node installation, type node -v
command.
To confirm NPM installation, type npm -v
command.