Homebrew installs nvm but nvm can't be found afterwards?

前端 未结 10 1316
既然无缘
既然无缘 2020-12-22 20:53

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

10条回答
  •  暖寄归人
    2020-12-22 21:16

    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.

    1. Run brew install nvm
    2. Follow caveats shown in console, mine were as follows, yours MAY be different!:

    Add the following to ~/.bash_profile or your desired shell configuration file:

    export NVM_DIR="$HOME/.nvm"
    . "$(brew --prefix nvm)/nvm.sh"
    
    1. Run . ~/.bash_profile to apply the changes you made to your .bash_profile file

提交回复
热议问题