How To Install Node.js & NPM (Node Package Manager) on MacBook: A Step by Step Guide

Discover one of the best ways to download, install, and verify Node.js and NPM (Node Package Manager) installation, and start building JavaScript projects with ease.

HOW TO'S

Mwenda Kelvin (Chief Editor)

5/22/20243 min read

Node.js Logo (Credit: Node.js)

Node.js and NPM (Node Package Manager) are essential tools for any JavaScript developer out there in the sense that Node.js allows one to run JavaScript on the server side, while NPM (Node Package Manager) helps one to manage packages and dependencies for their projects and in this comprehensive guide/blog post article, is are steps to be followed in order to install Node.js and NPM (Node Package Manager) on your MacBook, ensuring you have everything you need to start building and managing JavaScript applications as follows;

STEP 1 - Using the terminal, check/confirm that you do not have Node.js installed on your MacBook using the following command (node -v then npm -v or node -v & npm -v) as seen from the screenshot below;

STEP 2 - Open your preferred browser and type “Node.js download” then click on the first link written “nodes.org > en > download” as seen from the screenshot below;

Node.js Download Brave Browser Search (Credit: MK)

STEP 3 - After clicking the link in STEP 2, it should direct you to the official Node.js website where you can download Node.js & NPM which has various versions and options (I chose “version 16.20.2” under the “Prebuilt Installer” which takes a few seconds or longer depending on your internet speed) as seen from the screenshot below;

Node.js Installer Window (Credit: MK)

MacBook Terminal Window (Credit: MK)

Node.js Official Download Website (Credit: Node.js)

Node.js Installer Window (Credit: MK)

STEP 6 - Under “Destination Select” choose where you want Node.js & NPM (Node Package Manager) to be installed on your MacBook then click on “Continue” as seen from the screenshot below;

STEP 4 - Go to the folder where the Node.js (pkg) was downloaded to and double click on it, which opens the installer then click on “Continue” under “Introduction” as seen from the screenshot below;

STEP 5 - Click “Continue” under “License” which creates a pop-up about “Software License Agreement” then click on “Agree” as seen from the screenshot below;

Node.js Installer Window (Credit: MK)

STEP 7 - Under “Installation Type” click on “Install” which creates a pop-up to input your MacBook’s password as seen from the screenshot below;

Node.js Installer Window (Credit: MK)

STEP 8 - After inputing your password, the installation process automatically begins and when done successfully, it will show the path where it was installed as seen from the screenshot below;

Node.js Installer Window (Credit: MK)

STEP 9 - To confirm/verify that Node.js & NPM (Node Package Manager) were successfully installed on your MacBook, open the terminal and type the same commands in STEP 1 as seen from the screenshot below;

MacBook Terminal Window (Credit: MK)

In summary, installing Node.js and NPM (Node Package Manager) on your MacBook is a straightforward process and by following this guide/blog post article, one can ensure that their development environment is set up correctly, allowing them to focus on building and managing their JavaScript projects while also with Node.js and NPM (Node Package Manager) installed, one is ready to explore the vast ecosystem of JavaScript libraries and tools available to enhance their development workflow.