随着凤凰城的全新安装,我试图触发一个新项目,当我尝试运行服务器时,我遇到了:
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
我不知道该寻找什么来深入挖掘,试图找出我能做些什么来理解什么是错误并修复它.请假设我没有线索,我正在学习.
另外,我不知道如何单独重新安装只有十六进制,所以我现在正在寻找,如果是这样我也有一个损坏的十六进制安装.
似乎我的十六进制安装已损坏.赛跑
mix local.hex
按照亨里克的建议解决了这个问题!他是其他人的帖子,表明十六进制可能已经腐败.
接下来是关于缺少模块早午餐的警告,但是通过运行npm install(作为触发建议的服务器时的输出)解决了这个问题.
快乐的时光!