-bash:nodenv:未找到命令

-bash:nodenv:未找到命令

我在使用所需版本的节点时遇到了麻烦nodenv。我卸载了节点,所以现在运行时which node什么都没有。

现在的问题是,当我尝试使用nodenv它进行安装时,它不起作用。

$ nodenv install 9.11.1
-bash: nodenv: command not found

为了再次检查是否nodenv真的安装,我运行了以下命令:

$ brew install nodenv
Warning: nodenv 1.2.0 is already installed and up-to-date
To reinstall 1.2.0, run `brew reinstall nodenv`

https://github.com/nodenv/nodenv

$ curl -fsSL https://github.com/nodenv/nodenv-installer/raw/master/bin/nodenv-doctor | bash
Checking for `nodenv' in PATH: not found
  Please refer to https://github.com/nodenv/nodenv#installation

**编辑 **

我不得不卸载并重新安装 nodenv

相关内容