1th Step – Add node. js to the Yum Library
First, we will provide a system to add node. js to the Yum Software Library on our Nodejs official website. You will also need to install development tools on your system to build the local plug-in.
# yum Install-y gcc-c++ make
# CURL-SL https://rpm.nodesource.com/setup_6.x | SUDO-E Bash-
2nd Step – Install node. js and NPM
After adding the Yum library to the system, let the installation package Nodejs. NPM will also be installed together with node. js. This command will also install many other dependent packages on the system.
# yum Install Nodejs
3rd Step – Check the node. js and NPM versions
After the installation completes node. js, the checksum checks the installed version. You can find more detailed information about the current version of node. JS on the official website.
$ node-v
v6.11.3
Check the NPM version at the same time.
$ npm-v
5.3.0
Install the latest Nodejs and NPM