用`mix deps.get`安装后无法在Elixir Shell中运行功能

时间:2019-09-26 20:02:52

标签: elixir mix

我尝试按照自述文件中的说明,将hex9afa01708fef# 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) 一起安装。但是,当我尝试执行示例代码时,出现错误:

import foo.bar.baz

我在这里错过了什么?

1 个答案:

答案 0 :(得分:2)

愚蠢的我。解决方案是使用以下命令启动外壳程序:

iex -S mix