简体   繁体   English

未为Elixir项目找到十六进制依赖项-毒药,苦艾酒

[英]hex dependencies not found for elixir project - poison, absinthe

I am getting unchecked dependency for environment error for ecto.create and ecto.migrate . 我正在unchecked dependency for environment ecto.createecto.migrate unchecked dependency for environment错误。 I have below mix.exs file dependency entry 我在下面的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

when I run the command mix ecto.create && mix ecto.migrate I get below error. 当我运行命令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

I am a greenhorn in hex,elixir and mix. 我是十六进制,混合药剂中的新角。

This could be due to cache issue 这可能是由于cache issue

Run below command 在命令下方执行

mix deps.clean --all

This cleans the local cache of hex repository 这将清理十六进制存储库的本地缓存

and then 接着

mix deps.get

which downloads the latest dependencies 下载最新的依赖项

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM