Node.js bootstrap
The recommended CLI tools (Codex / Claude Code / Gemini CLI / OpenCode / Hermes) need Node.js v22+. Skip this page if you already have a current LTS.
One-line installer
Detects your current Node version and walks you through installing the latest LTS only when needed (Homebrew on macOS, NodeSource on Linux, winget / Chocolatey on Windows). It does not touch any PrimeRouter configuration.
powershell
irm https://primerouter.ai/install/nodejs.ps1 | iexbash
curl -fsSL https://primerouter.ai/install/nodejs.sh | bashYou'll be asked before anything is installed
The script asks y/N before running any package manager. It exits early when Node v22+ is already detected.
Fallback: manual install
Install Node.js LTS by hand
- macOS:
brew install nodeor grab the LTS.pkgfrom nodejs.org - Linux: follow NodeSource's instructions
- Windows: download the
.msifrom nodejs.org
Verify:
bash
node -v # expect v22.x.x or higher
npm -v