Node.js installation guide
This guide explains how to install Node.js
as a development platform.
Installation in Mac OS
Method 1: Using Homebrew 1.
-
If you do not have Homebrew installed, open terminal and run the following command.
Once the Homebrew installation is complete, proceed as follows:
-
To install Node.js, run the following command in terminal.
Method 2: Using Volta
Volta is a Node.js version control tool made in Rust.
It is officially described as “a hassle-free JavaScript tool manager”.
To install it the normal way
Open terminal and run the following command
To install using Homebrew
Open terminal and run the following command.
Passing the PATH
You need to pass the PATH, so execute the following command.
Include the following in your .zshrc.
How to confirm installation
If you see the version of Volta as follows, you are done.
Installing Node.js
To install the latest version
To install a specific version:
Method 3: Download the installer from the official Node.js website
- Go to the official Node.js website
- Click “Download Node.js” to download the recommended version of the installer.
- Open the downloaded file and follow the instructions to complete the installation. The method is the same for Mac OS, Windows, and Linux.
To download the installer by specifying the version, you can download it from here.
Confirmation after installation
To check if the installation was successful, run the following command in Terminal (Mac) or Command Prompt (Windows).
These commands will show you the installed versions of Node.js and npm. If you see the output, the installation was successful.