Install nodejs on CentoOS

Source: Internet
Author: User
Tags yum repolist
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. InstallationepelIf 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, seeepelOfficial 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.