My nvm keep forgetting about the node environment ever since I upgraded to Yosemite(A few months ago)/Capitan EL(I upgraded this week) even though I did
nvm alias default 0.12
Hilariously, it told me after I hit enter
default -> 0.12 (-> v0.12.8)
But when I opened a new terminal it said node: command is not found!!
There are a couple of solutions I tried so far:
- I have tried using brew uninstall nvm&brew install nvm
- as well as the installing script, since brew complaint it doesn't work with the pre-released OS(which is actually GA right now)
- I double checked bash_profile do have the following lines - export NVM_DIR=~/.nvm - source $NVM_DIR/nvm.sh 
Unfortunately, none of them works. Have anyone run into a similar issue before?
Thanks!
 
     
     
    