Installing node. JS 4.0 or later in CentOS 6

Source: Internet
Author: User
Tags install node

If you want to install node. js >4.0 in CentOS 6, if you installed it in a previous way:

wget https://nodejs.org/dist/latest/node-v4.0.0.tar.xztar zvxf node-v4. 0.0. Tar . XZCD node-v4. 0.0 . /Configuremake&& make install

Will encounter error message:

4.8 3.4 (cxx=g++)

Tip To update the version of the C + + compiler, you can update it in the following ways:

sudo Curl http://Linuxsoft.cern.ch/cern/scl/slc6-scl.repo >/etc/yum.repos.d/ Slc6-scl.reposudo rpm--import http://ftp.mirrorservice.org/sites/ Ftp.scientificlinux.org/linux/scientific/51/i386/rpm-gpg-keys/rpm-gpg-key-cernsudoyum Install -y devtoolset-3
SCL Enable Devtoolset-3 Bash

After the update, again./configure and make && make install

Or you can follow the recommended installation methods on the node. JS Website:

Curl--silent--location https:///rpm.nodesource.com/setup | bash-yumInstall Nodejs

After successful pull

Yum Install GCC  Make

Installing node. JS 4.0 or later in CentOS 6

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.