Can';使用“mix deps.get”安装后,请不要在elixir shell中运行函数`
我正试图按照自述文件中的指示使用Can';使用“mix deps.get”安装后,请不要在elixir shell中运行函数`,elixir,elixir-mix,Elixir,Elixir Mix,我正试图按照自述文件中的指示使用hex进行安装。但是,当我尝试执行示例代码时,我得到一个错误: 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)> {:o
hex
进行安装。但是,当我尝试执行示例代码时,我得到一个错误:
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)
我错过了什么?我真傻。解决方案是以以下方式启动外壳:
iex-S混音