This guide covers installing Deno.js and Bun.js in Termux using proot Ubuntu.
First, update Termux and install Ubuntu using proot-distro:
pkg update && pkg upgrade -y
pkg install proot-distro -y
proot-distro install ubuntu
proot-distro login ubuntuapt update && apt upgrade -y
apt install curl wget unzip git -yRun the official Deno installer:
curl -fsSL https://deno.land/install.sh | sh
source ~/.bashrcVerify installation:
deno --versionRun the official Bun installer:
curl -fsSL https://bun.sh/install | bash
source ~/.bashrcVerify installation:
bun --version- Deno.js installation automatically sets the environment variables, so we only need to reload the shell (
source ~/.bashrc). - Bun.js may have compatibility issues on proot Ubuntu. If you encounter issues, check the latest discussions in Bun’s GitHub repository.
