Skip to content

Instantly share code, notes, and snippets.

@Jobians
Created March 22, 2025 19:18
Show Gist options
  • Save Jobians/cc3cff8b0b13bee03e95f64e86d0f2a6 to your computer and use it in GitHub Desktop.
Save Jobians/cc3cff8b0b13bee03e95f64e86d0f2a6 to your computer and use it in GitHub Desktop.
Installing Deno.js and Bun.js in Termux (Proot Ubuntu)

This guide covers installing Deno.js and Bun.js in Termux using proot Ubuntu.

1. Install Termux and 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

2. Update Ubuntu and Install Dependencies

apt update && apt upgrade -y
apt install curl wget unzip git -y

Installing Deno.js

Run the official Deno installer:

curl -fsSL https://deno.land/install.sh | sh
source ~/.bashrc

Verify installation:

deno --version

Installing Bun.js

Run the official Bun installer:

curl -fsSL https://bun.sh/install | bash
source ~/.bashrc

Verify installation:

bun --version

Notes

  • 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.
@Jobians
Copy link
Author

Jobians commented Mar 22, 2025

Screenshot_2025-03-22-20-22-27-37_84d3000e3f4017145260f7618db1d683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment