


9 to install the 9.x version, which is the latest version as of this writing.For example, you would replace the # character with: In this command, replace the # character with the major version number you selected. To do so, execute the following command: curl -silent -location | sudo bash. The bad news is that you first have to enable this repository on your EC2 instance. As a result, you can cleanly install the newest Node.js version via the yum package manager. This repository is updated far more frequently than the standard Amazon Web Services repositories. The good news is that the Node.js platform is available via its own repository. Installing the Node.js platform and the npm package manager The following instructions will therefore retrieve the latest full version within the selected major version. Within a given major version, you usually want the newest minor and patch versions.

Whether any Node.js applications you intend to execute depend on specific versions of the Node.js platform.(You do like to live on the bleeding edge, right?) Whether the newest features are important in your use cases.(It may not be if you’re willing and able to upgrade the Node.js platform on a regular basis!) Whether long-term support is important in your use cases.This may depend on the following factors: It is up to you to select the best major version for your needs. Odd-numbered major versions, such as version 9.x, typically offer the latest features. Even-numbered major versions, such as version 8.x, typically offer long-term support (LTS). Typically, two major versions of the Node.js platform are offered simultaneously. Selecting a version of the Node.js platform This article assumes you have already instantiated an Amazon EC2 instance on which you would like to install the Node.js platform. This information is current as of November 16, 2017. Therefore, you likely want to install the Node.js platform and the npm package manager on your EC2 instance. In fact, even applications which are not primarily JavaScript-based may depend on npm packages. Moreover, heaps of useful functionality can be installed via the npm package manager. Today, powerful applications based on JavaScript may be executed on the server side via the Node.js platform. It has surpassed its humble beginnings as a tool to improve the user interfaces of websites. JavaScript isn’t just for browsers anymore.
