我正在尝试安装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}]}
我该如何避免这种情况?
答案 0 :(得分:0)
我需要确保〜/ .mix / archives目录具有写权限。
sudo chmod a+rw ~/.mix/archives/
解决了这个问题。