安装nodejs
安装express-generator
http://expressjs.com/en/starter/generator.html
npm install express-generator -g
express --view=pug myapp
Then install dependencies:
$ cd myapp
$ npm install
启动express
DEBUG=express:* node ./bin/www
http://expressjs.com/en/starter/generator.html
npm install express-generator -g
express --view=pug myapp
$ cd myapp
$ npm install
DEBUG=express:* node ./bin/www
本文标题:使用 Express4
本文链接:https://www.haomeiwen.com/subject/fvpygxtx.html
网友评论