Home > System Tutorial > LINUX > body text

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

王林
Release: 2024-01-05 21:33:47
forward
1201 people have browsed it

1. Download nodejs version

wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
Copy after login

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
Copy after login

Set environment variables

vi /etc/profile
###############
最后一行添加
export PATH=$PATH:/usr/local/node/bin
Copy after login

3. Install express

npm install express -gd
npm install express-generator
Copy after login

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template