[英]hex dependencies not found for elixir project - poison, absinthe
我正在unchecked dependency for environment
ecto.create
和ecto.migrate
unchecked dependency for environment
錯誤。 我在下面的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
我是十六進制,混合葯劑中的新角。
這可能是由於cache issue
在命令下方執行
mix deps.clean --all
這將清理十六進制存儲庫的本地緩存
接着
mix deps.get
下載最新的依賴項
運行mix deps.get
解決此問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.