我尝试使用phoenix和mongodb启动应用程序。
当我尝试运行mix phoenix.server
时,我收到此错误消息:
could not compile dependency :mongodb_ecto, "mix compile" failed. You can recompile this dependency with "mix deps.compile mongodb_ecto", update it with "mix deps.update mongodb_ecto" or clean it with "mix deps.clean mongodb_ecto"
在我的依赖项文件中,我有个版本。
defp deps do
[{:phoenix, "~> 1.1.6"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 2.0.2"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:mongodb_ecto, "~> 0.1"},
{:ecto, "~> 1.1.9"}
]
端
我做了任何降级来解决版本中的冲突。我该怎么做才能解决这个问题?