Install Node & NPM on macOS (Homebrew, NVM, Official Installer)

Easierdocs Node.js Install Article Image

Using Homebrew (Recommended)

brew install node

Using Node Version Manager (NVM)

NVM allows you to install and manage multiple Node.js versions:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.zshrc
nvm install --lts
nvm use --lts

Using Official Installer

  1. Download the installer from nodejs.org
  2. Run the downloaded .pkg file
  3. Follow the installation wizard

Verify Installation

node --version
npm --version

If these commands output the current versions, the installation was successful.

Last updated on