标签:
1、安装express框架生成包
npm install express-generator -g
2express命令常用选项
-h, --help output usage information
-V, --version output the version number
-e, --ejs add ejs engine support (defaults to jade)
--hbs add handlebars engine support
-H, --hogan add hogan.js engine support
-c, --css <engine> add stylesheet <engine> support (less|stylus|compass) (defaults to plain css)
-f, --force force on non-empty directory
3、生成工程
express -e myapp
4、安装应用的包
cd myapp && npm install
5运行
cd bin && node www
express框架api网站expressjs.com/4x/api.html
标签:
原文地址:http://www.cnblogs.com/xueyuwyz/p/4435576.html