Install Erlang on Windows 11
Chocolatey on Windows
Chocolatey is a package manager for
Windows. Its
Erlang package runs the official Erlang/OTP
installer, which adds the bin folder of the runtime to PATH.
Install Erlang from an elevated
PowerShell window:
choco install erlang
If choco itself is missing, install Chocolatey first, as described at chocolatey.org.
To move to a newer OTP release later, upgrade the package:
choco upgrade erlang
Verify the install
The shell is the program erl. Ask it for the version in PowerShell: the answer names the emulator and its version, which belongs to the OTP release that the installer brought.
erl -version
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 15.2.7.14
Ask the runtime for the OTP release number itself. PowerShell passes the single-quoted argument to erl unchanged:
erl -noshell -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), halt().'
27
Both answers were measured on Erlang/OTP 27; your installer prints the numbers of its own OTP release, and the Chocolatey package is Erlang/OTP 26.
If erl is not found, close PowerShell, open it again, and try once more.
Winget on Windows 11
Winget ships with Windows 11. Its package id for Erlang is Erlang.ErlangOTP, the same official installer as the Chocolatey package, so use one of the two routes, not both.
winget install --id Erlang.ErlangOTP
Erlang and Elixir
Elixir is a language that compiles to the
same BEAM bytecode and runs on the same virtual machine, the same
libraries and the same error handling. It adds a Ruby-like syntax and
metaprogramming macros on the same foundation.
On Windows, install Erlang first: the Elixir installer looks for the
runtime and its erl program. The
Elixir course starts with that
install.
Article author: Arthur Isaev