Installation instructions
*NOTE: If you are using RHEL 6 or CentOS 6, you might want to read about [running Node.js on older distros](https://github.com/nodesource/distributions/blob/master/OLDER_DISTROS.md).*
The Nodesource RPM package signing key is available here: [https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL](https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL)
Run on RHEL, CentOS, CloudLinux, Amazon Linux or Fedora:
**Node.js v15.x**
# As root
curl -fsSL https://rpm.nodesource.com/setup_15.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_15.x | sudo bash -
Node.js v14.x
# As root
curl -fsSL https://rpm.nodesource.com/setup_14.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -
Node.js v12.x
# As root
curl -fsSL https://rpm.nodesource.com/setup_12.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_12.x | sudo bash -
Node.js v10.x
# As root
curl -fsSL https://rpm.nodesource.com/setup_10.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_10.x | sudo bash -
Node.js LTS (14.x)
# As root
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
Node.js Current (15.x)
# As root
curl -fsSL https://rpm.nodesource.com/setup_current.x | bash -
# No root privileges
curl -fsSL https://rpm.nodesource.com/setup_current.x | sudo bash -
Optional: install build tools
To compile and install native addons from npm you may also need to install build tools:
yum install gcc-c++ make
# or: yum groupinstall 'Development Tools'