Detailed steps for installing node. js in CentOS

Source: Internet
Author: User
Tags centos install node

Compile and install node. js

Wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
Tar zvxf node-v0.8.5.tar.gz
Cd node-v0.8.5
./Configure
Make & make install

Modify the wget version by yourself.

Run the yum command to install

Yum install \
Http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
For Enterprise Linux version 7 Beta: if your version is centos7.x, run the following command:

Yum install \
Http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
Then install the nodejs and npm packages: After the above environment is installed, install nodejs and npm

Sudo yum install nodejs npm -- enablerepo = epel

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.