[英]Invalid Elixir version requirement in mix.exs file
I'm trying to run mix deps.get
.我正在尝试运行mix deps.get
。 When I do, I get the following error:当我这样做时,我收到以下错误:
(Mix) Invalid Elixir version requirement <version> in mix.exs file
This is my mix.exs file:这是我的 mix.exs 文件:
def project do
[
app: :app,
version: "0.1.0",
elixir: "1.6.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
which seems standard.这似乎是标准的。 I can't find anything on the internet about this.我在互联网上找不到任何关于此的内容。 Changing the version doesnt work, neither does excluding the elixir version field altogether.更改版本不起作用,完全排除 elixir 版本字段也不起作用。
NOTE: System details:注意:系统详细信息:
Erlang/OTP 21 [erts-10.3.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Mix 1.6.6 (compiled with OTP 21)
Elixir 1.6.6 (compiled with OTP 21)
I see this issue when Elixir is installed form old package by simply running:当 Elixir 从旧的 package 安装时,我看到了这个问题,只需运行:
sudo apt-get install elixir
Before running that however we need to add new package repository.然而,在运行之前,我们需要添加新的 package 存储库。 It is described on Elixir install page, part for Debian .它在Elixir 安装页面上进行了描述,部分用于 Debian 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.