Problem installing Elixir - (RuntimeError) TE_NODE_NAME env variable must be provided

in trying to install elixir and erlang in the following directory
i used the following command

brew install openssl@3
asdf plugin-update erlang
ERLANG_OPENSSL_PATH=“/opt/homebrew/opt/openssl@3” asdf install erlang

after that i got this

b:trading-engine bishen `$ asdf current`
elixir                   1.9.4-otp-22 /Users/bishen/.ssh/trading-engine/.tool-versions
erlang          /Users/bishen/.ssh/trading-engine/.tool-versions

and after this i am trying to run $ mix deps.get

and getting error

** (RuntimeError) TE_NODE_NAME env variable must be provided
    (stdlib) erl_eval.erl:744: :erl_eval.do_apply/7
    (stdlib) erl_eval.erl:961: :erl_eval.expr_list/7
    (stdlib) erl_eval.erl:290: :erl_eval.expr/6
    (stdlib) erl_eval.erl:282: :erl_eval.expr/6
    (stdlib) erl_eval.erl:283: :erl_eval.expr/6
    (stdlib) erl_eval.erl:961: :erl_eval.expr_list/7
    (stdlib) erl_eval.erl:454: :erl_eval.expr/6
    (stdlib) erl_eval.erl:136: :erl_eval.exprs/6

please help me out
os is macbook pro

1 Like

It looks like the Elixir/Erlang installation went well. This error indicates that an environment variable TE_NODE_NAME is missing. It is likely a variable needed by the specific project you are running, as indicated by the TE_ prefix, and the fact that your directory is called “trading-engine”. If the project has documentation, check for instructions on how to start it.

As a side note, you might have created this post in the wrong section: the Nerves section is for posts about the Nerves project, for using Elixir on embedded devices. You might find help more easily by posting in “questions” (maybe the moderators can help moving the post).


Nitpick: the .ssh directory inside your home directory is not the right place to install this stuff.