简体   繁体   English

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

[英]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.

相关问题 无法安装 mix - Cannot install mix 使用Mix编译Phoenix应用程序的Ejabberd依赖项时出错:无法编译依赖项:ejabberd,“ mix compile”失败 - Error compiling Ejabberd dependency of a Phoenix application with Mix: could not compile dependency :ejabberd, “mix compile” failed 我如何使用 mix(Elixir) 安装包安装到系统? - how can i using mix(Elixir) install package install to system? 使用Mix时,Elixir .exs脚本“模块未加载且无法找到” - Elixir .exs script “module is not loaded and could not be found” when using Mix VScode mix.exs 错误 - 无法使用“make”编译 - VScode mix.exs error - Could not compile with “make” **(混合)无法编译依赖项:epipe, - ** (Mix) Could not compile dependency :epipe, mix.compile返回错误(Mix)无法编译“ src / gettext_po_parser.yrl”,因为找不到应用程序“ parsetools” - mix.compile returns error (Mix) Could not compile “src/gettext_po_parser.yrl” because the application “parsetools” could not be found 尝试在Mix任务中使用`Phoenix.Token`时出错 - Error while trying to use `Phoenix.Token` in a Mix task 无法编译依赖项:咸,“混合编译”失败 - could not compile dependency :salty, “mix compile” failed 自定义混合任务无法找到“任务” - 'Task could not be found' for custom mix task
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM