Brew安装nvm. nvm:找不到命令 [英] Brew install nvm. nvm: command not found

查看:567
本文介绍了Brew安装nvm. nvm:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用brew安装nvm并运行nvm后,显示nvm: command not found

After install nvm with brew, and running nvm, it says nvm: command not found

如何获取要执行的命令?

How can I get the command to execute?

推荐答案

使用brew安装nvm有两个步骤.

There are two steps to installing nvm with brew.

首先使用brew安装应用程序:

First use brew to install the application:

brew install nvm

然后查看酿造信息的小室"部分,以了解您还必须做些什么:

Then take a look at the brew info "caveats" section, to see what else you have to do:

brew info nvm

您可能会看到类似的信息(这可能会改变!):

You might see something like (this can change!):

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文件,则只需创建一个文件即可.

If you do not have a ~/.bash_profile file, then you can simply create one.

在尝试使用该命令之前,请确保重新启动终端.

Make sure to restart your terminal before trying the command.

这篇关于Brew安装nvm. nvm:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆