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 ubuntu
apt update && apt upgrade -y
apt install curl wget unzip git -y
Run the official Deno installer:
curl -fsSL https://deno.land/install.sh | sh
source ~/.bashrc
Verify installation:
deno --version
Run the official Bun installer:
curl -fsSL https://bun.sh/install | bash
source ~/.bashrc
Verify 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.