简体   繁体   English

如何解决“ **(混合)”问题,当我运行“ mix test”时,找不到“ compile.all”任务

[英]How to fix “** (Mix) The task ”compile.all“ could not be found” when I run `mix test`

Recently started using exercism to learn elixir and I'm running into issues using mix. 最近开始使用运动来学习长生不老药,而我在使用混合时遇到了问题。 I'm completely new to using this tool so I've probably missed something basic. 我是使用此工具的新手,所以我可能错过了一些基本知识。

When I run mix test in a directory with a tests subdirectory I get an error. 当我在带有tests子目录的目录中运行mix test ,出现错误。

** (Mix) The task "compile.all" could not be found **(混合)找不到任务“ compile.all”

When I run mix deps.get or mix deps.compile I get another error 当我运行mix deps.getmix deps.compile另一个错误

** (Mix) The task "archive.check" could not be found **(混合)找不到任务“ archive.check”

What am I doing wrong here? 我在这里做错了什么? I imagine I need to install some task somehow? 我想我需要以某种方式安装一些任务?

I'm expecting to run some unit tests with a pass/fail condition but an error I documented above is thrown instead. 我期望在通过/失败条件下运行一些单元测试,但是会抛出上面记录的错误。

I found out what I did wrong. 我发现自己做错了。 I forgot to install all the dependencies. 我忘了安装所有依赖项。

You can find a list of the full installation process at the elixir web page 您可以在elixir网页上找到完整安装过程的列表。

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

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