For some reason Brew installs node 5 into a separate directory called node5.
The steps I took to get back to version 5 were: (You will need to look up standard brew installation/uninstallation, but otherwise this process is more straightforward than it looks.)
- Install node5 using Brew standard installation, BUT don't brew link, yet.
- Uninstall all other versions of node using brew unlink node and brew uninstall node. You might need to use --force to remove one of the versions.
- Find the cellar folder on your computer
- Delete the node folder in the cellar.
- Rename the node5 folder to node.
- Then, brew link node
You should be all set with node 5.