I was trying to upgrade to elixir 1.7 (I currently have 1.6.0).
I ran brew upgrade elixir
in my terminal but it said Error: elixir not installed
.
And when I run elixir --version
I'm getting this weird output:
=SUPERVISOR REPORT==== 27-Jul-2018::15:03:35.806956 ===
supervisor: {local,'Elixir.Logger.Supervisor'}
errorContext: start_error
reason: noproc
offender: [{pid,undefined},
{id,'Elixir.Logger.ErrorHandler'},
{mfargs,
{'Elixir.Logger.Watcher',start_link,
[{error_logger,'Elixir.Logger.ErrorHandler',
{true,false,500}}]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
=CRASH REPORT==== 27-Jul-2018::15:03:35.806836 ===
crasher:
initial call: Elixir.Logger.Watcher:init/1
pid: <0.88.0>
registered_name: []
exception exit: noproc
in function gen:do_for_proc/2 (gen.erl, line 228)
in call from gen_event:rpc/2 (gen_event.erl, line 239)
in call from 'Elixir.Logger.Watcher':init/1 (lib/logger/watcher.ex, line 23)
in call from gen_server:init_it/2 (gen_server.erl, line 374)
in call from gen_server:init_it/6 (gen_server.erl, line 342)
ancestors: ['Elixir.Logger.Supervisor',<0.82.0>]
message_queue_len: 0
messages: []
(More crash reports here) ... and at the end:
Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
Elixir 1.6.0 (compiled with OTP 19)
I'm not sure what's going on, now I can't even run my elixir programs.