1、安装Express
npm install -g express
npm install -g express-generator
2、新建项目
express -t ejs newsproject
3、进入项目
cd newsproject
npm install
4、运行项目
node app.js
1、安装Express
npm install -g express
npm install -g express-generator
2、新建项目
express -t ejs newsproject
3、进入项目
cd newsproject
npm install
4、运行项目
node app.js