CentOS 6.9 Installs the specified version of node. js with Yum

Source: Internet
Author: User
Tags install node nodesource

Description: With Yum benefits in fact a lot, environment variables do not configure, configuration file in everyone familiar place, through RPM-QL xxx can know all the files of the place and so on.

node. JS (8.x)

First, installation and configuration

1. Install node. js

# Curl--silent--location https:///rpm.nodesource.com/setup_8.x | sudo bash-yumInstall -y Nodejs

2, Installation PM2

Install pm2-g

3. Verification

// node. js, normal output version # node--version//  NPM, normal output version # NPM--version//  PM2, normal output version # PM2--version

Ii. description

The script above corresponds to an official

https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora

Official scripts include Ubuntu in addition to CentOS, including different versions of node. js

Https://github.com/nodesource/distributions

CentOS 6.9 Installs the specified version of node. js with Yum

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.