I'm trying to run 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:
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.
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:
sudo apt-get install elixir
Before running that however we need to add new package repository. It is described on Elixir install page, part for Debian .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.