About a month ago, I wrote an article on how to use the cross-platform version management tool vfox to install and manage multiple Erlang/OTP and Elixir version under Linux system -> Install mutiple Erlang and Elixir with vfox. the demonstration operation system used in the article is Ubuntu 20.04 Linux operation system.
Recently, the latest version of the vfox-erlang and vfox-elixir plugins has supported the installation and management of multiple version of Erlang/OTP and Elixir under Windows platforms. and has passed the End to End test -> Testing.

This article will use the Windows 10 operation system as an example to teach you how to install and manage multiple Erlang/OTP and Elixir version on Windows platforms.
1 | > Get-ComputerInfo |
1、Install vfox
vfox (version-fox) is a popular cross-platform universal version management tool recently. it is written in Go language and the plug-in mechanism uses Lua to realize scalability. currently vfox already supports the management of versions of most mainstream programming languages, and the ecosystem is relatively strong. here you can see the programming language versions and tools currently supported and managed by vfox-> vfox-Available Plugins.
Please be sure to install vfox of version 0.5.3+ and above, otherwise vfox-erlang and vfox-elixir will not work normally. Here we install vfox through winget:
1 | winget install vfox |
In order for vfox to find the installed versions of Elixir and Erlang, vfox needs to be mounted to the powershell by default:
1 | if (-not (Test-Path -Path $PROFILE)) { New-Item -Type File -Path $PROFILE -Force }; Add-Content -Path $PROFILE -Value 'Invoke-Expression "$(vfox activate pwsh)"' |
If PowerShell prompts: cannot be loaded because the execution of scripts is disabled on this system.Open PowerShell with Run as Administrator.Then, run this command in PowerShell
1 | Set-ExecutionPolicy -ExecutionPolicy RemoteSigned |
You can also refer to the official document to install vfox -> https://vfox.lhan.me/guides/quick-start.html. after installing vfox, we will install the following version management plugins:
1 | add vfox-erlang plugin for managine mutiple erlang versions |
After the installation is complete, you can use the two vfox plugins vfox-erlang and vfox-elixir in the Windows platform to install and manage multiple Erlang and Elixir versions.
Let’s continue.
2、Install Erlang/OTP through vfox-erlang plugin
Since Elixir relies on Erlang/OTP, we need to install Erlang/OTP before installing Elixir. If you have already installed Erlang/OTP through other methods, please ensure that the version of Elixir installed through vfox-elixir is compatible with it. You can check the official documentation of Elixir to confirm this between-elixir-and-erlang-otp.
1 | get avaliable version |
you can install any distribution that appears in the https://github.com/erlang/otp/releases containing the windows executable(exe) file. When you see the following message, the installation is complete.
1 | compile info....... |
We use vfox to switch to the Erlang/OTP version just installed to verify whether the next installation is successful:
1 | ❯ vfox use -g [email protected] |
If you can correctly wake up the REPL (Read-Eval-Print Loop) interactive command line, then the installation is fine. Next, start installing Elixir
3、Install Elixir via vfox-elixir plugin
Before installing the specified Elixir version, make sure that the currently installed shell can find the toolchain related to the installed Erlang/OTP version.
1 | Before the installation starts, switch to the Erlang version that Elixir depends on: |
When you see the relevant information such as Install [email protected] success! Please use vfox use [email protected] to use it., it means that the installation has been completed. Next, verify the availability:
1 | ❯ vfox use -g [email protected] |
If Elixir’s REPL (Read-Eval-Print Loop) interactive command line can be opened normally, then the installation is successful and available.
In the end
vfox’s two plug-ins for installing and managing Erlang/OTP and Elixir versions also support managing multiple versions under Uinx-like (Linux & Darwin MacOS) system. You can check this document for more information:https://github.com/version-fox/vfox-elixir. Full platform operating system support ~
Happy & funny!