- 1 year ago
How to have latest version of Elixir in Windows
Comment
1 / 1
To have the latest version of Elixir on Windows, you can follow these steps:
Install Erlang/OTP:
- Elixir runs on the Erlang Virtual Machine (BEAM). Therefore, you need to install Erlang/OTP first.
- Visit the official Erlang Solutions website at https://www.erlang-solutions.com/ and download the Erlang installer for Windows.
- Run the installer and follow the installation wizard to complete the installation.
Install Elixir:
- Once Erlang is installed, you can proceed to install Elixir.
- Visit the official Elixir website at https://elixir-lang.org/ and navigate to the downloads section.
- Download the Windows Installer (MSI) package for the latest version of Elixir.
- Run the installer and follow the installation wizard to complete the installation.
Verify the installation:
- Open a command prompt or PowerShell window.
- Type
elixir --version
and press Enter. - You should see the version of Elixir installed, indicating that the installation was successful.
Update Elixir:
- To update Elixir to the latest version in the future, you can use the package manager called "Hex."
- Open a command prompt or PowerShell window.
- Run the following command to update Hex:shell
mix local.hex
- Then, run the following command to update Elixir:shell
mix local.rebar
By following these steps, you can install the latest version of Elixir on your Windows machine. Remember to periodically check for updates and use the mix local.hex
and mix local.rebar
commands to update Hex and Elixir, respectively, to the latest versions.