I suppose you already installed homebrew nad have one current version of node installed.
Reference taken from https://gist.github.com/kugaevsky/68a7fa894551da9c310a
First, add an older formula of node:
$ cd /usr/local
$ git checkout b64d9b9c431642a7dd8d85c8de5a530f2c79d924 Library/Formula/node.rb
$ brew unlink node