For Enterprise Linux based distributions (Red Hat® Enterprise Linux® / RHEL, CentOS, CloudLinux, Fedora), see the rpm directory for the source of setup script located at https://rpm.nodesource.com/setup.

Please file an issue if you are experiencing a problem or would like to discuss something related to the distributions.

Pull requests are encouraged if you have changes you believe would improve the setup process or increase compatibility across Linux distributions.

To compile and install native addons from npm you may also need to install build tools:

# use `sudo` on Ubuntu or run this as root on debian
apt-get install -y build-essential

Manual installation

If you're not a fan of curl <url> | bash -, or are using an unsupported distribution, you can try a manual installation.

These instructions assume sudo is present, however some distributions do not include this command by default, particularly those focused on a minimal environment. In this case, you should install sudo or su to root to run the commands directly.

1. Remove the old PPA if it exists

This step is only required if you previously used Chris Lea's Node.js PPA.

# Replace with the branch of Node.js or io.js you want to install: node_0.10, node_0.12, node_4.x, node_5.x, etc...
VERSION=node_6.x
# The below command will set this correctly, but if lsb_release isn't available, you can set it manually:# - For Debian distributions: wheezey, jessie, sid, etc...# - For Ubuntu distributions: trusty, xenial, etc...# - For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README.
DISTRO="$(lsb_release -s -c)"echo"deb https://deb.nodesource.com/$VERSION$DISTRO main"| sudo tee /etc/apt/sources.list.d/nodesource.list
echo"deb-src https://deb.nodesource.com/$VERSION$DISTRO main"| sudo tee -a /etc/apt/sources.list.d/nodesource.list

4. Update package lists and install Node.js

sudo apt-get update
sudo apt-get install nodejs

Enterprise Linux based distributions

Available architectures:

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

Requested Distributions

We, unfortunately, do not have the resources necessary to support and test the plethora of Linux releases in the wild, so we rely on community members such as yourself to get support on your favorite distributions! This is a list of releases that have been requested by the community. If you are interested in contributing to this project, this would be a great place to start!

This project is not affiliated with Debian, Ubuntu, Red Hat, CentOS or Fedora.Ubuntu is a registered trademark of Canonical Ltd.Debian is a registered trademark owned by Software in the Public Interest, Inc.Red Hat, CentOS and Fedora are trademarks of Red Hat, Inc.CloudLinux is a trademark of Cloud Linux, Inc