![](/img/trans.png)
[英]Elixir: mix deps.get Request failed (403) and no cached copy
[英]Can't run function in elixir shell after installing with `mix deps.get`
我正在尝试按照自述文件中的说明使用hex
安装mint
。 但是,当我尝试执行示例代码时,出现错误:
9afa01708fef# iex
Erlang/OTP 22 [erts-10.5] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]
Interactive Elixir (1.9.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> {:ok, conn} = Mint.HTTP.connect(:http, "httpbin.org", 80)
** (UndefinedFunctionError) function Mint.HTTP.connect/3 is undefined (module Mint.HTTP is not available)
Mint.HTTP.connect(:http, "httpbin.org", 80)
我在这里错过了什么?
傻我。 解决方案是使用以下命令启动 shell:
iex -S mix
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.