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:
node --version # v22.13.0 or newer is enoughbun --version # any bun release is enoughIf either command prints a suitable version, skip to the Quick start.
Install the basics
Section titled “Install the basics”sudo apt-get updatesudo apt-get install -y curl unzip ca-certificatesInstall Node.js or bun
Section titled “Install Node.js or bun”Pick one. Both install into your home directory and need no sudo.
-
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 -
Load nvm in the current shell (or open a new terminal):
Terminal export NVM_DIR="$HOME/.nvm". "$NVM_DIR/nvm.sh" -
Install the current Node.js LTS release and make it the default:
Terminal nvm install --ltsnvm alias default 'lts/*'node --version # v22.13.0 or newer
Other ways to install Node.js are listed on the Node.js download page.
-
Install bun with its official script (see the bun installation guide):
Terminal curl -fsSL https://bun.sh/install | bash -
Load it in the current shell (or open a new terminal):
Terminal export BUN_INSTALL="$HOME/.bun"export PATH="$BUN_INSTALL/bin:$PATH"bun --version
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.