简体   繁体   English

凤凰混 - 编译无法找到依赖的依赖

[英]Phoenix mix - compile can't find dependency of dependency

In my Phoenix app, I am having an issue where mix seems to be unable to find the dependencies of one of my dependencies... let me break it down... 在我的凤凰应用程序中,我遇到一个问题, mix似乎无法找到我的某个依赖项的依赖项...让我分解它...

I added a dep called opentok to mix.exs and ran mix deps.get - it's all good, was installed, added to mix.lock , etc. However, when I ran mix deps.compile , I got several messages relating to dependencies of the dependency... for example: 我在mix.exs添加了一个名为opentok的dep并运行了mix deps.get - 它一切都很好,已经安装,添加到mix.lock等等。但是,当我运行mix deps.compile ,我收到了几条与依赖关系有关的消息。依赖...例如:

DEP    jwt
mv: /Users/user/projects/phoenix_app/deps/opentok/deps/jwt/ebin/jwt.app: No such file or directory

But I must respectfully disagree, the file is definitely there, I'm looking right at it, it came in with the dep with deps.get . 但我必须恭敬地不同意,文件肯定存在,我正在看它,它带有deps.get的dep。

Ok so obviously, there's more to this process than I understand. 好的很明显,这个过程比我理解的更多。 What step am I missing here? 我在这里错过了什么一步? How can I get mix to find the file that I know is there? 我怎样才能mix发现我所知道的是有什么文件?

For what it's worth, I tried the whole thing totally fresh - ran mix deps.unlock --all , mix deps.clean --all , mix deps.get , mix deps.compile , still the same thing. 为了它的价值,我尝试了全新的东西 - 运行mix deps.unlock --allmix deps.clean --allmix deps.getmix deps.compile ,仍然是同样的事情。

Thank you! 谢谢!

Hex registry for opentok seems to be broken. opentok的十六进制注册表似乎被打破了。 If you still need to use it, try the github version in your mix.exs: 如果您仍然需要使用它,请尝试mix.exs中的github版本:

{:opentok, github: "eyrmedical/opentok"}

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

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