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

标签 homebrew nvm

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

相关文章:

node.js - 使用 npm 安装 Ganache 后权限被拒绝

python - MacOS:在 High Sierra 上 brew install graph-tool

ssl - MacOS Mojave 更新 SSL/TLS 后无法从 'https ://rubygems.org/' 安装 gems(?)

c++ - macOS fatal error : sys/_types/_int8_t. h : No such file or directory #include <sys/_types/_int8_t. h>

node.js - 带 NVM 的安装 Node v4.1 - 权限被拒绝

python - 无法在 MacOS : 'zsh: command not found: nvm' 上使用 nvm install

python - AWS SAM CLI 全新安装引发错误 - dyld : Library not loaded: @executable_path/. ./.Python

python - 无法在 MacO 上使用 opencv 运行 Sift

node.js - npm 未被识别为内部或外部命令 - 使用 nvm 安装

nvm 安装无法附加 nvm 源字符串