Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Node through nvm
# the script setup-node.sh is available within this gist
chmod u+x setup-node.sh
./setup-node.sh
Verify it worked:
node -v
v7.X.X