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.

Revisions

  1. Jobians created this gist Mar 22, 2025.
    59 changes: 59 additions & 0 deletions install-deno-bun-termux.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,59 @@
    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`:

    ```sh
    pkg update && pkg upgrade -y
    pkg install proot-distro -y
    proot-distro install ubuntu
    proot-distro login ubuntu
    ```

    ## 2. Update Ubuntu and Install Dependencies

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

    ---

    ## Installing Deno.js

    Run the official Deno installer:

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

    Verify installation:

    ```sh
    deno --version
    ```

    ---

    ## Installing Bun.js

    Run the official Bun installer:

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

    Verify installation:

    ```sh
    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.