I'm using homebrew
and oh-my-zsh
on a fresh OSX 10.10.1 install. I got nvm
via homebrew
and then attempted to run it but says - zsh: command not found: nvm
Any idea what the problem is? I was able to install and use git just fine...
I'm using homebrew
and oh-my-zsh
on a fresh OSX 10.10.1 install. I got nvm
via homebrew
and then attempted to run it but says - zsh: command not found: nvm
Any idea what the problem is? I was able to install and use git just fine...
Did you follow the instructions listed in the caveats?
Without the extra config it doesn't look like it will find NVM by default..
There are TWO things you need to do. Follow the caveats shown after installing nvm via brew, and THEN you need to activate/reload the .bash_profile changes.
brew install nvm
. ~/.bash_profile
to apply the changes you made to your .bash_profile fileThe reason you would need to reload your bash profiles or any other bash files might be because the command nvm may not be a program but a function that is defined and can only be used if the corresponding bash file is sourced.
On a system that I checked
does not work but
does. This means that you can use the word "nvm" to invoke something. That something isn't a program. In the current case, it is a function which can be verified by
which outputs
which means nvm is a function, whose body can be inspected by doing
One possibility if
brew
was used is that thenvm
may be unlinked, especially if it was installed by another MAC OS user.In this case, execute: