Install an older version of Haxe.

Hello!

I need to install the Haxe version 4.1.5 on an Ubuntu machine through the terminal but it only installs the latest version. How to install an older version of Haxe through the terminal?

Thank you!

You have to download binaries manually with wget or curl utilities from https://github.com/HaxeFoundation/haxe/releases/download/4.1.5/haxe-4.1.5-linux64.tar.gz
Unpack it and then add it to $PATH environment variable.

You could also consider using the lix package manager instead of haxelib. One great feature of this package manager is that it let you download and use a different version of Haxe per project.

lix install haxe 4.1.5
2 Likes