Installing Node.js 8 on Linux via Package Manager
At NodeSource, we maintain the consistently-updated Node.js repositories for Linux distributions. These aren’t repositories like most Node.js developers think of them - git repositories - but rather repositories in the sense of installing Node.js via the given Linux OS’s built-in package manager - like apt
and yum
.
With the release of Node.js 8 yesterday, we’ve gone ahead and built the Node.js 8 binaries and made them readily available if you’re using Node.js on a Debian- or Enterprise Linux-based distro.
Want to get the latest and greatest with Node.js 8 on Linux? Let’s get you up and running:
Install Node.js 8 on Ubuntu or Debian Linux
To install Node.js 8 on Ubuntu and Debian-based Linux distros, you’ll need to run the bash script for and you’ll have the up-to-date APT repository ready to go.
If you want to see if your distro is supported, you can find the full list of distros and *supported *versions on the GitHub repo.
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y nodejs
If you’d like a full deep-dive into installing Node.js on Ubuntu or Debian, I wrote articles on installing Node.js on Ubuntu and installing Node.js on Debian Linux a while back that give a detailed explanation of the process.
Install Node.js 8 on Enterprise Linux Distributions
To install Node.js 8 on Enterprise Linux distros like RHEL, CentOS, and Fedora, you need to run the bash script for and you’ll have the Node.js 8 RPM repository - once you’ve done that, you’ll be ready to go.
If you want to see if your Enterprise Linux distro and version is supported, you can find the full list of distros and *supported *versions for each distro on the GitHub repo.
curl -sL https://rpm.nodesource.com/setup_8.x | bash -
yum install -y nodejs
What next?
If you’re interested in secure, reliable, and extensible Node.js, you should really take a look at N|Solid - we’re eagerly await
ing October when Node.js 8 becomes LTS and we begin shipping N|Solid with Node.js 8.
If you want to keep up to date with what’s going on in Node.js 8, N-API, Async Hooks, and more, you should be sure to keep up with @NodeSource on Twitter! We’ll keep you up-to-date on the latest and greatest Node.js updates, and are always updating you with the best Node.js tutorials, guides, and tools!