如何使用Homebrew在OSX上安装DNX?

问题描述:

您好!由于将k较大地重命名为dnx,所以我不知道如何在Mac上安装这些工具?

Hello Since the big rename of k to dnx I have no idea how to install the tools on my mac?

dev分支上的文档尚未更新以反映较大的重命名

the documentation on the dev branch has not been updated to reflect the big rename

https://github.com/aspnet/Home/tree/dev

homebrew-k最近已更新以支持dnvm.这里的说明:

The homebrew-k was updated recently to support dnvm. Here the instructions:

  • 安装Homebrew(如果尚未安装).
  • 运行命令brew tap aspnet/k以点击与ASP.NET 5相关的git存储库.如果您已经使用了早期版本的存储库,请运行brew untap aspnet/k删除旧命令,然后再次点击以获取更新的brew脚本
  • 运行命令brew install dnvm以安装dnvm.这将从 https://www.nuget.org/api/v2href ="https://www.nuget.org/api/v2"中自动安装最新的DNX软件包. a>提要
  • 如果终端无法理解dnvm
  • ,请在终端上运行命令source dnvm.sh
  • Install Homebrew if it is not already installed.
  • Run command brew tap aspnet/k to tap the ASP.NET 5 related git repositories. If you had already tapped the repo for previous releases, run brew untap aspnet/k to delete the old commands and tap again to get the updated brew scripts
  • Run command brew install dnvm to install dnvm. This will automatically install the latest DNX package from https://www.nuget.org/api/v2 feed
  • Run command source dnvm.sh on your terminal if your terminal cannot understand dnvm

编辑

Homebrew-K重命名为Homebrew-dnx,所以现在您应该使用

Homebrew-K was renamed to Homebrew-dnx so now you should use

brew tap aspnet/dnx

如果您点击aspnet/k,则可以先解除它(brew untap aspnet/k)并更新brew(brew update)

If you tapped aspnet/k it is probably not a bad idea to untap it (brew untap aspnet/k) and update brew (brew update)