1. Download nodejs version
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
2. Compile and install
cp node-v0.10.28.tar.gz /usr/src/ cd /usr/src tar zxvf node-v0.10.28.tar.gz cd node-v0.10.28/ ./configuration --prefix=/usr/local/node make&make install
Set environment variables
vi /etc/profile ############### 最后一行添加 export PATH=$PATH:/usr/local/node/bin
3. Install express
npm install express -gd npm install express-generator
The above is the detailed content of Steps to install and compile Node.js&Express framework under Centos. For more information, please follow other related articles on the PHP Chinese website!