用brew安装nvm后,运行nvm
,说nvm: command not found
我如何获得要执行的命令?
最佳答案
使用brew安装nvm有两个步骤。
首先使用brew安装应用程序:brew install nvm
然后,查看 brew 信息的“小凹处”部分,以了解您还需要做什么:brew info nvm
您可能会看到类似的信息(这可能会改变!):
You should create NVM's working directory if it doesn't exist:
mkdir ~/.nvm
Add the following to ~/.bash_profile or your desired shell
configuration file:
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
如果没有〜/ .bash_profile文件,则只需创建一个即可。
在尝试命令之前,请确保重新启动终端。
关于homebrew - Brew安装nvm。 nvm:找不到命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53118850/