1、安裝官網elixir-lang.org上的installation說明,
下載https://repo.hex.pm/elixir-websetup.exe,運行
2、安裝Hex本地包管理倉庫。命令行運行
mix local.hex
3、設置鏡像服務器(國內的鏡像好像已經掛了 https://hexpm.upyun.com)
mix hex.repo set hexpm --url https://cdn.jsdelivr.net/hex
4、安裝phoenix
mix archive.install hex phx_new 1.5.1