Managing multiple versions of node with nvmEdit
On OS X, use Homebrew to get nvm:
$ brew info nvm # get tips
$ export NVM_DIR=~/.nvm
$ source $(brew --prefix nvm)/nvm.sh
$ export PATH=~/.nvm:$PATH
$ nvm install 0.10
$ nvm use v0.10.38
$ rm -rf node_modules # blow away old modules; can also do `npm rebuild`
$ npm install
I don’t anticipate using it often, so I haven’t yet modified my dotfiles to incorporate the export
(etc) set-up.