OSX错误dnvm:找不到命令

Vin*_*ung 7 dnvm asp.net-core

我是OSX的新手.按照https://github.com/aspnet/home中的分步说明进行操作.

brew tap aspnet/dnx
brew update
brew install dnvm
Run Code Online (Sandbox Code Playgroud)

运行dnvm upgrade时出现以下错误:

$ dnvm upgrade

Error:
-bash: dnvm: command not found
Run Code Online (Sandbox Code Playgroud)

我尝试找到dnvm,看起来它已成功安装在\ usr\local目录中.

我缺少一步吗?

tug*_*erk 10

运行source dnvm.sh后,brew install dnvm并尝试运行dnvm即可.最好将它放在你的shell配置文件中(例如在.profile文件中),这样它就会一直存在.