Install the latest Nodejs and NPM

Source: Internet
Author: User
Tags install node

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

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.