How to Install NPM and Node.js on Mac and Windows (2024)

Quick Overview:
Installing Node.js and NPM is crucial for JavaScript development. The guide provides detailed steps for installation on both Mac and Windows, along with troubleshooting tips for common issues. Developers can efficiently manage packages and dependencies using these tools while building Node.js applications.

Table of Contents

Step-by-Step Guide to Download & Install NPM and Node.js

With exponential growth and demand for full-stack development,JavaScripthas become a reliable technology to develop a full-fledged business application.

Severalbackendandfrontend frameworksand libraries are available, based on JavaScript, and highly compatible with each other. Node JS is a technology that professionals appraised for fabricating a scalable server-side for robust and responsive applications.

Before having in-depth knowledge aboutNode JS, it is necessary to have answers to the two most raised queries: the first one is how to install npm on Mac, and the second is quite similar: how to install npm on Windows.

If you are also facing difficulty installing Node JS and NPM on your Windows and macOS systems, you are in the right place to learn how to install NodeJs with NPM.

Let’s explore the installation process step-by-step to get one step ahead in our software project, and to understand this precisely, firstly, we will learn about NPM.

Before starting with the installation process, you must check your system information and whether it can handle, install, and maintain the functioning of Node JS and NPM packages.

Hardware & SoftwareRequirements to Install Node.js and NPM

You can assure it by cross-verifying your computer’s details with the below-listed minimum Node JS requirements:

  • 4GB RAM
  • Minimum of Intel Core i3 processor @ 2.5 GHz or higher
  • 256 GB of Free Storage Space
  • One GE interface
  • Chocolatey Software

Now, let’s begin and proceed to gain a comprehensive understanding of each step involved in installing Node.js and NPM on both Windows and macOS.

How to Install NPM on Windows?

  1. Download the Package Manager from the official website.
  2. Running the downloaded file on your system
  3. Install NPM Windows through Wizard
  4. Accepting the Terms and Conditions
  5. Defining the Path
  6. Defining the core features to be installed
  7. Allowing Automatic Tool Installation (Optional)
  8. Install Node JS Windows
  9. Installation in Progress
  10. NPM and Node JS are installed
  11. Installing Additional Tool

Step 1: Download the Package Manager from the official website.

To install Node JS on the system, the first step is to download its package manager, the NPM.

You can search the official website on Google or click on this link to navigate:Visit here for the node install process.

For Windows, you have to select theWindows Installer (.msi)according to the architecture of your installed operating system. Both 32-bit and 64-bit versions are available, and you can download them just by clicking on them.

How to Install NPM and Node.js on Mac and Windows (1)

Step 2: Running the downloaded file on your system

After Downloading the installation package, locate it on your system and double-click on it.

After that, a dialogue box will appear, seeking permission to run the NPM. Click onRunto start the installation process.

How to Install NPM and Node.js on Mac and Windows (2)

Step 3: Install NPM Windows through Wizard

After hitting the Runbutton, a new dialogue box will be displayed.

Click onNextto continue with the process.

How to Install NPM and Node.js on Mac and Windows (3)

Step 4: Accepting the Terms and Conditions

Further, select the check box to agree with the terms and conditions to use the Node JS on your computer system. Then, selectNextto move ahead.

How to Install NPM and Node.js on Mac and Windows (4)

Step 5: Defining the Path

You have to define the location where you want to install the Node JS on your machine. By default, the destination for the file is set to the Program Files folder available in Local Disk C.

You can modify the file destination through the Change button.

In addition, all the core files and future updates are available in this location only. So, ample storage space must be available to allow Node JS to function efficiently.

How to Install NPM and Node.js on Mac and Windows (5)

Step 6: Defining the core features to be installed

Once you’ve determined the path, you will proceed to select Custom Setup. Here, you need to choose the features you want to install.

A total of 143MB of free storage is required to install the main components as listed below:

  • js runtime
  • Corepack manager
  • Npm package manager
  • Online documentation shortcuts

You can check the details of each feature by clicking on it, and its information will be displayed in the right panel.

How to Install NPM and Node.js on Mac and Windows (6)

Step 7: Allowing Automatic Tool Installation (Optional)

This step is optional; you can ignore it if you don’t need to install any additional tools with Node.js.

And if you require any extra tools, you can select the check box and move further by clicking on the Next button.

After successfully configuring Node.js, it will download the appropriate package to install these tools.

How to Install NPM and Node.js on Mac and Windows (7)

Step 8: Install Node JS Windows

Click on theInstallbutton to start the process and wait for it to complete. Also, you can go back if you want to modify any setting.

How to Install NPM and Node.js on Mac and Windows (8)

Step 9: Installation in Progress

You will see a progress bar providing the current status when the Node JS installation is in-between.

How to Install NPM and Node.js on Mac and Windows (9)

Step 10: NPM and Node JS are installed

After configuring the relevant settings and performing core operations, the system will install all the files on your computer, and you will be ready to commence using them.

How to Install NPM and Node.js on Mac and Windows (10)

Step 11: Installing Additional Tool

If you have selected the check box to have additional tools, then CMD will open after Node JS has been installed, and you have to follow the provided instructions.

How to Install NPM and Node.js on Mac and Windows (11)

Let’s Check Whether Node JS and NPM are installed Successfully or Not

To verify the Node JS and NPM installation, we will open the CMD from the startup menu and type the following commands:

  • For Node JS ->node -v
  • For NPM ->npm -v
How to Install NPM and Node.js on Mac and Windows (12)

How to Install NPM on MAC?

  1. Downloading the NPM Package for macOS
  2. Running the Package Manager as per Guidelines
  3. Agreeing to License Terms and Conditions
  4. Moving to final Installation
  5. Installation Completed

Step 1: Downloading the NPM Package for macOS

Go to the official website of Node JS to download the NPM package for Mac Operating System.

You canclick hereto open the download page and select the appropriate file for your system.

How to Install NPM and Node.js on Mac and Windows (13)

Step 2: Running the Package Manager as per Guidelines

Open the folder where the downloaded file is present and double-click to run it.

A dialogue box will appear on the screen. Click onContinueto move further and side-by-side by reading the provided information.

How to Install NPM and Node.js on Mac and Windows (14)

Step 3: Agreeing to License Terms and Conditions

You have to agree to the license terms at this stage, and you can also read all the conditions through the Read License button.

If you disagree with the terms, then Installation will be automatically canceled. You can easily read through all the terms and conditions byreading License.

How to Install NPM and Node.js on Mac and Windows (15)

Step 4: Moving to final Installation

After finalizing the file location, you have to click onInstallto start the installation process. The Hard Disk of your Macintosh will store all the files and can utilize up to 102 MB of storage space.

How to Install NPM and Node.js on Mac and Windows (16)

Step 5: Installation Completed

After the successful Installation of the Node JS with the help of NPM, you will see its detailed summary, providing information about the path where the file is present on your system.

How to Install NPM and Node.js on Mac and Windows (17)

Let’s Confirm whether the Node JS and NPM are successfully installed or not

Node JS and NPM are successfully installed on your system, but it is essential to check whether they are working correctly or not and whether the updated version is installed or not.

First, you have to open the macOS terminal by clickingthe command + spaceor finding it from the search bar.

How to Install NPM and Node.js on Mac and Windows (18)

After opening the terminal, now you have to run the following commands:

  • For checking Node JS installation ànode – -version
  • For checking NPM installation ànpm – -version
How to Install NPM and Node.js on Mac and Windows (19)

How to Install NPM on Mac using Homebrew

Homebrew is a free and open-source package management system used on macOS and Linux-based systems to straightforward the installation procedure. Let’s go through each step to install Node JS and NPM with it.

  1. Installing the Node JS and NPM
  2. Verifying Installation

Step 1: Installing the Node JS and NPM

Upon opening Homebrew, you will encounter a command-line interface where you can easily unpack and install Node.js and NPM by executing the command brew install node.

After this, Node JS and NPM will be installed, and you have to confirm their Installation.

How to Install NPM and Node.js on Mac and Windows (20)

Step 2: Verifying Installation

To confirm the Installation of Node JS and NPM, you have to open the terminal and type thenode -vandnpm -vcommands to check the installed version.

How to Install NPM and Node.js on Mac and Windows (21)

If the Homebrew hasn’t installed the latest version of Node JS, you can open it again and run the commandbrew upgrade node. It will update the Node JS version.

Let’s Understand What is NPM?

Node Package ManagerorNPMis the only default and official package manager utilized for installing Node JS on a computer system.

Additionally, it provides a command-line interface for accessing and utilizing packages during software development. All the packages are defined within a default file known as package.json. It also aids the users in managing multiple dependencies from a single CLI.

You download and install it simultaneously with Node JS on your system, so you don’t need any additional or different files to install NodeJS and NPM on your system.

The following snippet demonstrates how web developers benefit from using the NPM CLI to install and utilize relevant packages in their applications.

How to Install NPM and Node.js on Mac and Windows (22)

Moreover,the Website,Command Line Interface, andRegistryare the three main components of the Node Package Manager.

The website is theofficial NPM online platform, where you can download the essential packages directly. You can operate the CLI from your machine’s terminal, and it links to the Registry, which holds metadata and details of various JavaScript projects in an extensive database, facilitating npm download.

Transform Your Business with Custom Software Development using Node.js on Windows & MAC

Revolutionize your business with Node.js custom software development for seamless Windows and MAC integration.

CONTACT US

How to Install NPM and Node.js on Mac and Windows (23)

Wrapping Up on Install NPM and Node.js on Mac & Windows

After going through all these steps in this article, you will surely be successful in installing Node JS and NPM on your Windows and macOS-based machines. These are the easiest and ideal ways to perform Windows npm install. However, you can go any other way per your comfort, preference, and project requirements.

Installing NPM and Node.js is your first step and all you need to start your app development journey.

How to Install NPM and Node.js on Mac and Windows (24)

Parag MehtaHow to Install NPM and Node.js on Mac and Windows (25)

Verified Expert in Software & Web App Engineering

Parag Mehta, the CEO and Founder of Positiwise Software Pvt Ltd has extensive knowledge of the development niche. He is implementing custom strategies to craft highly-appealing and robust applications for its clients and supporting employees to grow and ace the tasks. He is a consistent learner and always provides the best-in-quality solutions, accelerating productivity.

Hire Best Web Application Development Company

Starts 15 Days Risk-Free Trial

Related Posts

What Makes Node JS Considerable for Software Development

What is NodeJS Technology? All-in-One Guide for 2022

The Best Node JS Framework List for 2022

How to Install NPM and Node.js on Mac and Windows (2024)
Top Articles
Top 3 hertz.com Alternatives & Competitors
TradingView vs. MetaTrader: Which Platform is Best for Forex Trading?
Places 5 Hours Away From Me
The Powers Below Drop Rate
State Of Illinois Comptroller Salary Database
Gt Transfer Equivalency
Richmond Va Craigslist Com
ATV Blue Book - Values & Used Prices
The Connecticut Daily Lottery Hub
Craigslist Cars Nwi
Reddit Wisconsin Badgers Leaked
Premier Reward Token Rs3
Munich residents spend the most online for food
Aldi Sign In Careers
Transfer and Pay with Wells Fargo Online®
Puretalkusa.com/Amac
Kp Nurse Scholars
Ruse For Crashing Family Reunions Crossword
Menards Eau Claire Weekly Ad
Heart Ring Worth Aj
Today Was A Good Day With Lyrics
Sea To Dallas Google Flights
Touchless Car Wash Schaumburg
How many days until 12 December - Calendarr
Garnish For Shrimp Taco Nyt
Rapv Springfield Ma
Lines Ac And Rs Can Best Be Described As
Renfield Showtimes Near Paragon Theaters - Coral Square
Is Light Raid Hard
Feathers
How do you get noble pursuit?
Craigs List Jax Fl
LG UN90 65" 4K Smart UHD TV - 65UN9000AUJ | LG CA
Plasma Donation Racine Wi
Eero Optimize For Conferencing And Gaming
Gwen Stacy Rule 4
Linabelfiore Of
School Tool / School Tool Parent Portal
2008 Chevrolet Corvette for sale - Houston, TX - craigslist
Bismarck Mandan Mugshots
20 Best Things to Do in Thousand Oaks, CA - Travel Lens
Mcgiftcardmall.con
The Holdovers Showtimes Near Regal Huebner Oaks
T&Cs | Hollywood Bowl
Bob And Jeff's Monticello Fl
Conan Exiles Armor Flexibility Kit
Nami Op.gg
How to Find Mugshots: 11 Steps (with Pictures) - wikiHow
Myapps Tesla Ultipro Sign In
Raley Scrubs - Midtown
Texas 4A Baseball
Dinargurus
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 6266

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.