Download a specific version of Node.js (CLI).
The Node.js release is downloaded, uncompressed and untared to an executable file ready to run.
- the download is cached
- the best compression algorithm available on your machine is used
- everything is streamed
- the binary is checked against official checksums
- can be safely run concurrently
- atomic writes
- Linux/Mac/Windows support
- works with old Node.js versions
- progress bar
- using version ranges
- specifying a mirror website for nodejs.org
- helpful error messages
- can guess the current project's version using its
# Download Node.js latest release$ get-node/home/user/.cache/nve/12.10.0/x64/bin/node$ /home/user/.cache/nve/12.10.0/x64/bin/nodeWelcome to Node.js v12.10.0.Type ".help"
npm install -g get-node-cli
node >=10.17.0 must be globally installed. However any Node version can be
To use this programmatically (from Node.js) instead, please check
get-node [OPTIONS] [VERSION]
VERSION can be any version range such as
<12, or one of the following aliases:
latest: Latest available Node version
lts: Latest LTS Node version
global: Global Node version
local: Current directory's Node version
Default: global cache directory such as
Output directory for the
It the directory already has a
node executable, no download is performed. This
Whether to show a progress bar.
Base URL to retrieve Node.js binaries. Can be customized (for example
The following environment variables can also be used:
The list of available Node.js versions is cached for one hour by default. With:
--fetch: the cache will not be used
--no-fetch: the cache will be used even if it's older than one hour
Node.js binary's CPU architecture. This is useful for example when you're on x64 but would like to run Node.js x32.
All the values from
allowed except mips and mipsel.
When using the
local alias, start looking for a Node.js version file
from this directory.
get-node-clibut programmatically (from Node.js)
nve: Run a specific Node.js version (CLI)
nvexeca: Run a specific Node.js version (programmatic)
preferred-node-version: Get the preferred Node.js version of a project or user
node-version-alias: Resolve Node.js version aliases like
normalize-node-version: Normalize and validate Node.js versions
all-node-versions: List all available Node.js versions
fetch-node-website: Fetch releases on nodejs.org
global-cache-dir: Get the global cache directory
If you found a bug or would like a new feature, don't hesitate to submit an issue on GitHub.
For other questions, feel free to chat with us on Gitter.
Everyone is welcome regardless of personal background. We enforce a Code of conduct in order to promote a positive and inclusive environment.
This project was made with ❤️. The simplest way to give back is by starring and sharing it online.
If the documentation is unclear or has a typo, please click on the page's
button (pencil icon) and suggest a correction.
If you would like to help us fix a bug or add a new feature, please check our guidelines. Pull requests are welcome!
💻 🎨 🤔 📖