Download a specific version of Node.js (CLI).
The Node.js release is downloaded, uncompressed and untared to an executable file ready to run.
Fast:
- the download is cached
- the best compression algorithm available on your machine is used
- everything is streamed
Reliable:
- the binary is checked against
official checksums
- can be safely run concurrently
- atomic writes
Features include:
- 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
.nvmrc or package.json (engines.node field)
Example
# Download Node.js latest release
$ get-node
/home/user/.cache/nve/16.3.0/x64/bin/node
$ /home/user/.cache/nve/16.3.0/x64/bin/node
Welcome to Node.js v16.3.0.
Type ".help" for more information.
> .exit
# Download a specific Node.js release
$ get-node 8
/home/user/.cache/nve/8.17.0/x64/bin/node$ /home/user/.cache/nve/8.17.0/x64/bin/node process.version 'v8.17.0' .exit
Any version range can be used
$ get-node 8.12.0 $ get-node "<7"