

The latest version of Node.js and NPM is also available from the official NodeSource Enterprise Linux repository, which is maintained by the Nodejs website and you will need to add it to your system to be able to install the latest Nodejs and NPM packages. How to Install Node.js in Debian, Ubuntu, and Linux Mint

Optional: There are development tools such as gcc-c++ and make that you need to have on your system, in order to build native addons from npm. To add the repository for the latest version of Node.js, use the following command as root or non-root. Installing NodeJS in RHEL, CentOS, Fedora, Rocky & Alma Important: If you are running an older release of RHEL 6 or CentOS 6, you might want to read about running Node.js on older distros. The latest version of Node.js and NPM is available from the official NodeSource Enterprise Linux repository, which is maintained by the Nodejs website and you will need to add it to your system to be able to install the latest Nodejs and NPM packages. How to Install Node.js in RHEL Distributions
