This three minute video walks you through the process of installing nvm on a brand new Mac. With nvm installed it is easy to run any particular version of node at a given time. XCode command line tools are installed as a precursor to installing nvm.
Reference: sitepoint.com/quick-tip-multiple-versions-node-nvm/