Install Node.js on CentOS 7 / Ubuntu 16.04 / Arch Linux / macOS

This guide aims at guiding you install the latest Nodejs and npm on major Linux distributions – CentOS 7, Ubuntu 16.04 and Arch Linux. Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code on the server-side.

Node.js is built on Chrome’s V8 JavaScript engine and it uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

Node.js applications can run on macOS, Linux, Microsoft Windows, and Unix servers. These applications can also be written with CoffeeScript, which is a JavaScript alternative.

Install Node.js on CentOS 7

Node.js for CentOS 7 is available from the NodeSource Enterprise Linux repository. The official support for this repository, along with its scripts, can be found on GitHub at nodesource/distributions. As of this writing, the latest release of Node.js is 9.