If you are reading the official tutorial
Elixir 1.14.X and 1.15.X are possible choices:
- 1.14.X has been stable for long time.
- 1.15.X is released recently.
About the Erlang/OTP version:
- Elixir 1.14.X requires Erlang/OTP 23, 24, 25.
- Elixir 1.15.X requires Erlang/OTP 24, 25, 26.
Following above requirements, you can choose whatever you can get from ASDF. For now, maybe:
- 1.14.5-otp-25
- 1.15.0-otp-26
- 1.15.0-otp-25
- …
If there is no explicit reason to use the latest version of Elixir and Erlang/OTP , I typically lean towards using versions that have been released for some time rather than the latest version.
For me, I will use1.14.5-otp-25
.
If you are reading a book
If you are reading books that have been published for some time, it is best not to follow the principle mentioned above. These books usually have version requirements stated at the beginning, so install the required version according to their requirements.
Know more:
- How to choose Elixir + Erlang versions to install - #6 by LostKobrakai
- How to choose Elixir + Erlang versions to install - #8 by Eiji
About your question
- what versions of Erlang and Elixir do I install?
For now,Edit: If you want to have best experience, use1.15.0-otp-25
1.14.5-otp-25
. If you want to try “bleeding new stable version”, use1.15.0-otp-26
, but you will experience some pain…(@w0rd-driven mentions the reason). - How do I match the version of erlang to the version of Elixir that will run the Phoenix version I will want to run? Check compatibility related docs (mentioned by @dimitarvp and @LostKobrakai):
You can also get some detailed information from their GitHub actions, such as: