One-click installation of express framework on linux server (CentOS)

The express framework requires the support of the nodejs environment. Students who do not have the node.js environment installed can refer to the following blog

Linux server installation and configuration Node.js

well, let's get back to business. First use xshell or other software to connect to our server

1. Install express globally

npm install express -gd


2. Install express generator

npm install -g express-generator


3. Set express as global

sudo ln -s /data/node-v6.10.1-linux-x64/bin/express/usr/local/bin/express

4. Check whether the test is successful

express --version

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325819960&siteId=291194637