Download Node.js.
The binary is downloaded from the Node.js website.
This is cached: if the output directory already has a node
executable, no
download will be performed.
Works on Linux/Mac/Windows.
Example
$ get-node
$ ./node
Welcome to Node.js v12.8.0.
Type ".help" for more information.
> .exit
$ get-node 8
$ ./node
> process.version
'v8.16.0'
> .exit
$ get-node 8.12.0
$ get-node '<7'
$ get-node 12 ~/.cache/node_releases/
$ ~/.cache/node_releases/node --version
v12.8.0
Install
npm install get-node
At the moment this requires node
to be globally installed. Which means this is
only useful when you are installing a different version of Node.
Usage
get-node [VERSION] [OUTPUT_DIRECTORY]
VERSION
can be any version range such as
12
, 12.6.0
or <12
.
See also
Support
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.
Contributing
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 Edit
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!