Getting Started
1. Install Nodeup
Choose one installation method from Installation, then verify the binary:
nodeup show home prints the data, cache, and config roots that Nodeup will use for runtimes, downloads, settings, and overrides.
2. Install a Node.js Runtime
Install one or more exact versions or channels:
The install command resolves channels through the Node.js release index, downloads the matching archive for the current host, verifies SHASUMS256.txt, and extracts the runtime into Nodeup's toolchains directory.
Check installed runtimes:
3. Set the Default Runtime
nodeup default <runtime> installs exact or channel-selected runtimes when needed, records the selector, and tracks it for later nodeup update runs.
4. Run Commands
Run a command against a specific runtime:
nodeup run --install <runtime> ... installs a missing version before executing the delegated command. Without --install, a missing version fails with a not-found error and a recovery hint.
5. Configure a Directory Override
Pin a project directory to a runtime:
Set or remove an override for another directory:
Runtime resolution for normal dispatch is explicit selector, then nearest directory override, then global default. See Runtime Resolution.
6. Use Shims
When the same binary is linked or copied as node, npm, npx, yarn, or pnpm, Nodeup detects the executable name and dispatches to the active runtime:
macOS and Linux:
Windows PowerShell:
Managed alias dispatch installs a missing version selected by the active selector before running the command.
7. Verify Automation Output
Use JSON mode for scripts:
Handled failures in JSON mode are written to stderr as:
JSON payloads never include ANSI styling.