Install Node / NPM via Homebrew

Homebrew is a package manager for Mac, if you haven’t already installed it go ahead and follow this link

To install node run these commands.

$ brew update
$ brew uninstall node
$ brew install node
$ brew postinstall 

Note: the uninstall node may fail if you don’t have node installed on your machine currently, this just makes sure to remove any hangover files from potential previous installs.

Categories: Mac