[英]Trying to install using mix, (Mix) Could not access url error
I am trying to install elixir packages and whenever I use mix command, I get this kind of message, 我正在尝试安装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}]}
How do I avoid this? 如何避免这种情况?
I needed to ensure than ~/.mix/archives directory has write permission. 我需要确保〜/ .mix / archives目录具有写权限。
sudo chmod a+rw ~/.mix/archives/
solved the problem. sudo chmod a+rw ~/.mix/archives/
解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.