CentOS Installation Node JS environment

Source: Internet
Author: User

node. JS supports multiple platform installations, where the win platform installation is relatively straightforward and the following highlights the installation steps for the Linux platform. This article takes the CentOS platform as an example, does not prepare the explanation to take the source code compiles installs the method, but takes the download already compiled executable package on the node. JS website, extracts installs and sets some environment variables, so the whole process is very simple.

1. Download and unzip the latest node. JS installation Package

(The Linux platform compiled files are Linux Binaries (. tar.gz))

The site address is: http://www.nodejs.org/download/, you can find the latest Nodejs on the page.

Assuming the installation directory is /HOME/APPDEVP , you can run the command

Cd/home/appdevp

wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x86.tar.gz

Tar xvzf node-v0.10.26-linux-x86.tar.gz

2. Set environment variables (~/.bash_profile) in the current user Master profile

Export Node_home=/home/appdevp/node-v0.10.26-linux-x86

Export path= $NODE _home/bin: $PATH

3, so far has been installed NODEJS!!! Run the command, please.

Node-v View Version

Node-h View Help

NPM Help View NPM command assistance

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.