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

前端 未结 10 1313
既然无缘
既然无缘 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条回答
  •  萌比男神i
    2020-12-22 21:25

    To .bash_profile or .zshrc add:

    export NVM_DIR="$HOME/.nvm"
    source $(brew --prefix nvm)/nvm.sh
    

    But a second line makes terminal initialization slow. Solution: https://gist.github.com/gfguthrie/9f9e3908745694c81330c01111a9d642

提交回复
热议问题