I have installed homebrew via boxen. I did not know that
npm update -g is a bad thing to do, as npm runs amok trying to update itself. Hence, npm stopped working. I am now trying to get node and npm back to work again.
I have installed the node via homebrew:
$ brew unlink node && brew link node Unlinking /opt/boxen/homebrew/Cellar/node/0.10.26... 5 symlinks removed Linking /opt/boxen/homebrew/Cellar/node/0.10.26... 4 symlinks created
Yet npm claims that
$ npm nodenv: version `v0.10.26' is not installed
Running nodenv indeed shows that the current version is not found:
$ nodenv versions v0.10 v0.10.21 v0.6 v0.6.20 v0.8 v0.8.8
I am confused as to why nodenev shows all the versions it does.
How do I fix nodejs and npm?