brew install node
. Then sit back and wait: Homebrew will automatically download, unpack, and install the software for us. NPM comes automatically bundled with Node so we only need to install Node itself this way to get both!node -v
in Terminal. This will print the version number, which will be something like 6.9.5
.npm -v
in Terminal. The version number should be something like 3.10.10
.brew update
in Terminal to update Homebrew itself.brew upgrade node
to upgrade Node.brew uninstall node
to remove it.