Can't `brew link` an unlinked keg
I was able to relink the correct version of node by running:
brew cleanup
brew link node
brew uninstall node
brew install node
I was getting:
$ brew link node
Error: No such keg: /usr/local/Cellar/node
$ brew link node@8
Warning: node@8 is keg-only and must be linked with --force
That command helped to get everything working again:
brew link --overwrite --force node@8