Click the link: “How to install NodeJS and NPM on Mac using Homebrew“
In this tutorial we will learn to install NodeJS and NPM on Mac using Homebrew.
Step 1: Install Homebrew
Homebrew is “The missing package manager for macOS”.
Open terminal and type the following command.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"