Home  >  Article  >  System Tutorial  >  Steps to install and compile Node.js&Express framework under Centos

Steps to install and compile Node.js&Express framework under Centos

王林
王林forward
2024-01-05 21:33:471143browse

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete