尝试使用mix安装,(Mix)无法访问url错误

时间:2015-08-31 06:34:14

标签: elixir phoenix-framework

我正在尝试安装elixir软件包,每当我使用mix命令时,我都会收到这种消息,

mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.0/phoenix_new-1.0.0.ez
Are you sure you want to install archive https://github.com/phoenixframework/phoenix/releases/download/v1.0.0/phoenix_new-1.0.0.ez? [Yn] y
** (Mix) Could not access url https://github.com/phoenixframework/phoenix/releases/download/v1.0.0/phoenix_new-1.0.0.ez, error: {:failed_connect, [{:to_address, {'github.com', 443}}, {:inet, [:inet], :nxdomain}]}

我该如何避免这种情况?

1 个答案:

答案 0 :(得分:0)

我需要确保〜/ .mix / archives目录具有写权限。

sudo chmod a+rw ~/.mix/archives/解决了这个问题。