Installing node. js on CentOS

Source: Internet
Author: User
Tags install node

Installing node. js on CentOS
[Date: 2014-07-21] Source: Linux Community maskdfe [Font: Big Small]

Install node. js on CentOS (see what you want to learn about node. js on Linux).

Description

Use the CentOS system for Nodejs installation, Nodejs version-v0.8.7.

1, first download Nodejs:

# wget http://nodejs.org/dist/v0.8.7/node-v0.8.7.tar.gz

2, unzip the file

# tar XVF node-v0.8.7.tar.gz

3, go to unzip directory

# CD node-v0.8.7

4, check the required configuration

#./configure

An error message appears:

Exception:call to ' (Echo | $ (Echo ${cxx_host:-$ (which g++)})-m32-e-

>/dev/null 2>&1) && echo "-m32" | | True ' returned exit status 0. While

Loading dependencies Of/opt/node-v0.8.7/node.gyp while trying to load

/opt/node-v0.8.7/node.gyp

5, if the above error occurs, install gcc-c++

# yum Install gcc-c++

6, for installation (long time):

# make Install

7, check whether the installation is successful, enter the command:

# node-v

If the installation succeeds, the corresponding version number is output, such as:

v0.8.7

8, you can now create a test.js file to test, the file content is: Console.log (' Hello world ');

Enter the command:

# node Test.js

Output:

Hello World.

UBUNRU 12.04 installation configuration for the node. JS Development Environment Http://www.linuxidc.com/Linux/2014-05/101418.htm

node. js Getting started [pdf+ related code] http://www.linuxidc.com/Linux/2013-06/85462.htm

Node. JS Introduction Development Guide Chinese version http://www.linuxidc.com/Linux/2012-11/73363.htm

node. js Installation and Configuration http://www.linuxidc.com/Linux/2013-05/84836.htm

Ubuntu compiler installs node. js http://www.linuxidc.com/Linux/2013-10/91321.htm

detailed description of node. JS : Please click here
node. js : Please click here.

For more information on CentOS, see the CentOS feature page http://www.linuxidc.com/topicnews.aspx?tid=14

This article permanently updates the link address : http://www.linuxidc.com/Linux/2014-07/104491.htm

Installing node. js on CentOS

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.