Skip to content

Node.js installation guide

This guide explains how to install Node.js as a development platform.

  1. If you do not have Homebrew installed, open terminal and run the following command.

    Terminal window
    /bin/bash -c $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)

    Once the Homebrew installation is complete, proceed as follows:

  2. To install Node.js, run the following command in terminal.

    Terminal window
    brew install node

Volta is a Node.js version control tool made in Rust.
It is officially described as “a hassle-free JavaScript tool manager”.

Open terminal and run the following command

Terminal window
curl https://get.volta.sh | bash

Open terminal and run the following command.

Terminal window
brew install volta

You need to pass the PATH, so execute the following command.
Include the following in your .zshrc.

Terminal window
export VOLTA_HOME=$HOME/.volta
export PATH=$VOLTA_HOME/bin:$PATH
Terminal window
volta --version

If you see the version of Volta as follows, you are done.

Terminal window
1.1.1

To install the latest version

Terminal window
volta install node

To install a specific version:

Terminal window
volta install node@20.11.0

Method 3: Download the installer from the official Node.js website

Section titled “Method 3: Download the installer from the official Node.js website”
  1. Go to the official Node.js website
  2. Click “Download Node.js” to download the recommended version of the installer.
  3. 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.

To check if the installation was successful, run the following command in Terminal (Mac) or Command Prompt (Windows).

Terminal window
node -v
npm -v

These commands will show you the installed versions of Node.js and npm. If you see the output, the installation was successful.