Installation
In Windows
MSI Installer (recommended)
On the release page, download heta-compiler-<version>-win-x64-installer.msi and run it to install or update Heta Compiler.
Chocolatey
If you have Chocolatey installed, you can install Heta compiler using the following commands:
choco install heta-compilerOr install a specific version:
choco install heta-compiler --version=0.9.5Update Heta compiler
choco upgrade heta-compilerUninstall Heta compiler
choco uninstall heta-compilerIn Linux
Ubuntu/Debian package (recommended)
Install/Update as .deb package
wget https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-x64.deb
sudo dpkg -i heta-compiler-x64.debUninstall .deb package
sudo dpkg -r heta-compilerOther Linux systems (x64)
Install/Update for all users (requires sudo privileges)
sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-linux-x64 && sudo chmod +x /usr/local/bin/hetaUninstall for all users
sudo rm /usr/local/bin/hetaInstall/Update for single user without sudo privileges
mkdir -p ~/bin
wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-linux-x64
chmod +x ~/bin/heta
echo "export PATH=$PATH:~/bin" >> ~/.bashrc
source ~/.bashrcUninstall for single user
rm ~/bin/hetaIn macOS
Standalone packages and the Homebrew formula are available for Apple Silicon (arm64) only on macOS 13.5 or later.
Homebrew package manager (recommended)
If you have Homebrew installed, you can install Heta compiler using the following commands:
brew tap hetalang/heta-compiler
brew trust --formula hetalang/heta-compiler/heta-compiler
brew install heta-compilerUpdate Heta compiler
brew update
brew upgrade heta-compilerUninstall Heta compiler
brew uninstall heta-compilerManual installation on Apple Silicon
Install/Update for all users (requires sudo privileges)
sudo curl -L -o /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-macos-arm64 && sudo chmod +x /usr/local/bin/hetaUninstall for all users
sudo rm /usr/local/bin/hetaInstall/Update for single user without sudo privileges
mkdir -p ~/bin
curl -L -o ~/bin/heta https://github.com/hetalang/heta-compiler/releases/latest/download/heta-compiler-macos-arm64
chmod +x ~/bin/heta
echo "export PATH=$PATH:~/bin" >> ~/.bashrc
source ~/.bashrcUninstall for single user
rm ~/bin/hetaOlder macOS versions and Intel Macs
For other supported Macs, install the indicated Node.js version and then run:
npm i -g heta-compiler| Mac and macOS version | Installation method | Node.js version |
|---|---|---|
| Apple Silicon, macOS 11.0–13.4 | npm | Node.js 22.x |
| Intel, macOS 11.0–13.4 | npm | Node.js 22.x |
| Intel, macOS 10.15 | npm | Node.js 20.x |
The standalone binary and Homebrew formula do not support Intel Macs or macOS before 13.5; macOS 10.14 and earlier are unsupported.
In Node environment
NodeJS must be installed prior to Heta compiler installation. The recommended version is NodeJS v24.
The next steps should be taken using console (shell): cmd, PowerShell, sh, bash depending on your operating system.
Check Node version.
bashnode -v # must be v18.0.0 or newerThe latest stable version of Heta compiler can be installed from npm
bashnpm i -g heta-compilerOR The development version can be installed directly from GitHub
bashnpm i -g git+https://github.com/hetalang/heta-compiler.git