3

我收到unchecked dependency for environment错误ecto.createecto.migrate。我有以下mix.exs文件依赖项

  defp deps do
    [{:phoenix, "~> 1.3"},
     {:phoenix_pubsub, "~> 1.0"},
     {:phoenix_ecto, "~> 3.3"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.11"},
     {:phoenix_live_reload, "~> 1.1", only: :dev},
     {:gettext, "~> 0.11"},
     {:cowboy, "~> 1.0"},
     {:absinthe, "~> 1.4"},
     {:absinthe_plug, "~> 1.4"},
     {:absinthe_ecto, "~> 0.1.3"},
     {:proper_case, "~> 1.0.0"},
     {:rbmq, "~> 0.4"},
     {:lager_logger, "~> 1.0"},
     {:quantum, "~> 2.2"},
     {:timex, "~> 3.0"},
     #{:amqp_client, "~> 3.6.7-pre.1", override: true},
     #{:rabbit_common, "~> 3.6.7-pre.1", override: true},
     {:httpoison, "~> 0.11.0"},
     {:confex, "~> 1.4"},
     {:cors_plug, "~> 1.5"},
     {:logger_file_backend, "~> 0.0.9"},
     {:distillery, "~> 1.1"},
     {:keycloak, "~> 0.2.0"},
     {:plug, "~> 1.4", override: true},
     {:poison, "~> 3.1", override: true}]
  end

当我运行命令时,mix ecto.create && mix ecto.migrate出现以下错误。

  Unchecked dependencies for environment dev:
* absinthe (Hex package)
  the dependency does not match the requirement "~> 1.4", got "1.2.5"
* poison (Hex package)
  the dependency does not match the requirement "~> 3.1", got "2.2.0"
** (Mix) Can't continue due to errors on dependencies

我是十六进制,长生不老药和混合物的新手。

4

2 回答 2

3

这可能是由于cache issue

运行以下命令

mix deps.clean --all

这会清除十六进制存储库的本地缓存

进而

mix deps.get

下载最新的依赖项

于 2018-09-24T07:11:50.277 回答
2

运行mix deps.get以解决问题。

于 2018-09-24T06:49:05.167 回答