Installing Node.js and NPM is pretty straightforward using HomeBrew. You can find more about installing HomeBrew on http://brew.sh/. Once you have brew installed on your Mac, open the terminal and type the following:
brew install node
Homebrew downloads some files and installs them. And that's it.