gpt4 book ai didi

homebrew - Brew安装nvm。 nvm:找不到命令

转载 作者:行者123 更新时间:2023-12-04 16:30:47 31 4
gpt4 key购买 nike

用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/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com