全新安装Phoenix后,我试图触发一个新项目,当我尝试运行服务器时,我遇到了:
Unchecked dependencies for environment dev:
* gettext (Hex package)
the dependency is not available, run "mix deps.get"
* phoenix_live_reload (Hex package)
the dependency is not available, run "mix deps.get"
* cowboy (Hex package)
* List item
...
但是当我运行mix deps.get
时,我得到了:
Running dependency resolution
** (UndefinedFunctionError) undefined function Access.Map.get_and_update!/3 (module Access.Map is not available)
Access.Map.get_and_update!(%Mix.Dep{app: :cowboy, deps: [], extra: [], from: "/Users/victoriawagman/Dropbox/Hemsidor/digitalocean/hello_phoenix/mix.exs", manager: nil, opts: [hex: :cowboy, build: "/Users/victoriawagman/Dropbox/Hemsidor/digitalocean/hello_phoenix/_build/dev/lib/cowboy", dest: "/Users/victoriawagman/Dropbox/Hemsidor/digitalocean/hello_phoenix/deps/cowboy"], requirement: "~> 1.0", scm: Hex.SCM, status: {:unavailable, "/Users/victoriawagman/Dropbox/Hemsidor/digitalocean/hello_phoenix/deps/cowboy"}, top_level: true}, :deps, #Function<13.85268495/1 in Hex.Resolver.attach_dep_and_children/3>)
(hex) lib/hex/resolver.ex:188: Hex.Resolver.attach_dep_and_children/3
(hex) lib/hex/resolver.ex:148: Hex.Resolver.get_deps/5
(hex) lib/hex/resolver.ex:107: Hex.Resolver.activate/6
(hex) lib/hex/resolver.ex:31: Hex.Resolver.resolve/3
(hex) lib/hex/remote_converger.ex:31: Hex.RemoteConverger.converge/2
(mix) lib/mix/dep/converger.ex:92: Mix.Dep.Converger.all/4
(mix) lib/mix/dep/converger.ex:47: Mix.Dep.Converger.converge/4
我无法寻找什么来寻找更深入的挖掘,试图找出我能做些什么来理解什么是错误并修复它。请假设我没有线索,我正在学习。
另外,我不知道如何单独重新安装十六进制,所以我现在正在寻找,如果是这样我也有corrupt install of hex。
答案 0 :(得分:28)
似乎我的十六进制安装已损坏。 正在运行
mix local.hex
根据Henrik的建议解决了这个问题! 他是其他人的帖子,表示hex might be corrupt。
接下来是关于缺少模块早午餐的警告,但是通过运行npm install(作为触发服务器建议时的输出)解决了这个问题。
快乐的日子!