Erlang can be installed with Termux's pkg by running this command:

pkg install erlang