Skip to content

Prerequisites

linux-toolchain runs with npx (Node.js 22.13 or newer) or with bunx (bun). A fresh Debian or Ubuntu install has neither, so install one of them first. You only need one.

You need Why
Debian, Ubuntu or a derivative (apt) The installers use apt for system packages
A user that can run sudo System steps (apt, /usr/local, /opt, /etc/profile.d) go through sudo
curl and unzip The nvm and bun installers below download with curl; the bun installer unpacks with unzip
Node.js 22.13 or newer (for npx) or bun (for bunx) Runs the CLI

Check what you already have:

Terminal
node --version # v22.13.0 or newer is enough
bun --version # any bun release is enough

If either command prints a suitable version, skip to the Quick start.

Terminal
sudo apt-get update
sudo apt-get install -y curl unzip ca-certificates

Pick one. Both install into your home directory and need no sudo.

  1. Install nvm, the Node Version Manager. The command comes from the nvm install guide; check there for the newest version tag.

    Terminal
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.41.0/install.sh | bash
  2. Load nvm in the current shell (or open a new terminal):

    Terminal
    export NVM_DIR="$HOME/.nvm"
    . "$NVM_DIR/nvm.sh"
  3. Install the current Node.js LTS release and make it the default:

    Terminal
    nvm install --lts
    nvm alias default 'lts/*'
    node --version # v22.13.0 or newer

Other ways to install Node.js are listed on the Node.js download page.

The nvm-bun toolchain uses the same official nvm and bun installers, so you can still select it later, for example to add pnpm, yarn or TypeScript.

Continue with the Quick start: preview an install with --dry-run, then run it.