I'm trying to run mix phx.new <project_name>
in my terminal to start a new phoenix 1.3 project, but I get the error message:
** (Mix) Phoenix v1.3.0-rc.1 requires at least Elixir v1.4.
You have 1.3.2. Please update accordingly
I ran brew install elixir
before to get the new version, tried it again and get:
Warning: elixir-1.4.2 already installed
However I run elixir -v
it tells me:
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Elixir 1.3.2
Any help would be greatly appreciated here to help me get running.
brew update && brew reinstall elixir
? – Sheharyar==> Reinstalling elixir
==> Downloading https://homebrew.bintray.com/bottles/elixir-1.4.2.sierra.bottle.
Already downloaded: /Users/Me/Library/Caches/Homebrew/elixir-1.4.2.sierra.bottle.tar.gz
==> Pouring elixir-1.4.2.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/elixir/1.4.2: 388 files, 5.5MB
But when I runelixir -v
, I still get it only showing 1.3.2 again. Thanks for the idea though! – Rhett Dwhich elixir
? – Sheharyarreadlink `which elixir`
– Sheharyarreadlink
to find it's path, remove it and then install the latest version usingbrew
– Sheharyar