Skip to content

Install Node.js on macOS

bash
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install Node.js
brew install node

Using Official Installer

  1. Visit https://nodejs.org/
  2. Download the macOS installer (.pkg)
  3. Run the installer and follow the prompts

Verify Installation

bash
node -v
npm -v

Next Steps

Powered by NewtCode