Erlang can be installed on Debian 13 (Trixie) or higher with apt by running this command:
sudo apt install erlang-dev rebar3
Earlier versions of Debian have an older version of Erlang that are no longer supported by the Erlang team or by most Gleam package authors.