[英]Cannot use command line Elixir mix (macOS High Sierra)
當我運行命令elixir -v
或mix
,它將返回:
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
一些細節:
$ brew list
elixir erlang
...
$ erl
Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0 (abort with ^G) 1>
$ elixir
Usage: elixir [options] [.exs file] [data]
-e COMMAND Evaluates the given command (*) -r FILE Requires the given files/patterns (*)
...
我已經使用brew卸載,重新安裝,但是沒有任何變化。 請幫我解決!
沒有任何參數的erl
將運行Erlang shell。 但是,如果您要運行Elixir Shell ,則應嘗試運行iex
(交互式Elixir )。 elixir
用於運行您已經編碼的程序 ,例如elixir simple.exs
或者可能是您的Erlang版本已經過時。 嘗試運行brew update
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.