I had the same problem, but installing v3.1.4 (even from source) still didn’t fix the problem. It ended up giving a new error:
'dlopen(/usr/local/Cellar/erlang/23.3.1/lib/erlang/lib/wx-1.9.3/priv/wxe_driver.so, 2): Library not loaded: /usr/local/opt/wxmac/lib/libwx_osx_cocoau_stc-3.0.dylib\n Referenced from: /usr/local/Cellar/erlang/23.3.1/lib/erlang/lib/wx-1.9.3/priv/wxe_driver.so\n Reason: image not found'},
I was, however, able to get it working using asdf
to install Erlang and Elixir, as recommended here.