Reference URL: NodeJS official website EPEL package management official website online tutorial: install nodejs1 on centos, check whether epelyumrepolist is installed // check whether epel is installed, check whether the yum package contains epel2 and install epel. if the first step has been installed, skip this step. // For centos6. * yum
Reference URL:
Official Node. js website: EPEL package management official website
Online Tutorial: install nodejs on centos
1. check for installationepel
Yum repolist // check whether epel is installed and whether the yum package contains epel
2. Installationepel
If the first step has been installed, skip this step.
// If centos 6. * version yum install kernel 7. * version yum install http://mirrors.opencas.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Perform Step 1 to check whether epel is successfully installed.Note: for specific installation versions, seeepel
Official website
3. install nodejs and npm
sudo yum install nodejs npm --enablerepo=epel
4. check whether the installation is successful.
Node-v // Check the corresponding version to determine whether the installation is successful