On the cutting-edge of Node.js development.
Downloads, compiles, and installs Node.js automatically from https://nodejs.org.
Nodejs-upgrade is a shell script that checks for Node.js updates, and if a newer version is available, automatically downloads, compiles, and installs the new version.
Nodejs-upgrade can also download and install a specific stable version.
Nodejs-upgrade automates the following operations:
- Checks for a specific version or latest stable version of Node.js.
- Downloads the source code from https://nodejs.org.
- Validates the shasum of the sources.
- Compiles and install teh code.
Nodejs-upgrade installs both node
and npm
executables.
New versions override versions previously installed.
After downloading the nodejs-upgrade
script, make it executable by running from a command prompt:
$ chmod u+x nodejs-upgrade
Nodejs-upgrade supports three types of installation. Regardeless of the type of installation, nodejs-upgrade always overwrites the node
and npm
binaries.
To install the latest available version of Node.js, run from a command prompt:
$ nodejs-upgrade
To install a specific release (e.g. v0.12.11), run from a command prompt:
$ nodejs-upgrade v0.12.11
To install the latest release of a specific version (e.g. v0.12), run from a command prompt:
$ nodejs-upgrade v0.12.x
Nodejs-upgrade requires:
- Bash
- Curl
- C and C++ compiler infrastructure required to build Node.js: clang or gcc, and clang++ or g++.
Node.js Upgrade is open-source software released under the MIT license. See the LICENSE file for details.