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