nodejs安装使用express
2024-09-02 21:22:02
1.用Express 应用程序生成器 express-generator 快速搭建express框架
1.1安装: npm install express-generator -g
1.2 生成目录:express -e .
命令:express -e . express表示安装express -e 表示使用ejs作为模板 . 表示当前目录中
1.3 安装依赖:npm install
D:\nodejs\es6\server>npm install express-generator -g
C:\Users\administrator\AppData\Roaming\npm\express -> C:\Users\administrator\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
+ express-generator@4.16.
added packages from contributors in .962s D:\nodejs\es6\server>express -e . warning: option `--ejs' has been renamed to `--view=ejs' create : public\
create : public\javascripts\
create : public\images\
create : public\stylesheets\
create : public\stylesheets\style.css
create : routes\
create : routes\index.js
create : routes\users.js
create : views\
create : views\error.ejs
create : views\index.ejs
create : app.js
create : package.json
create : bin\
create : bin\www install dependencies:
> npm install run the app:
> SET DEBUG=server:* & npm start
最新文章
- FFmpeg学习4:音频格式转换
- 《javascript权威指南》读书笔记(连载)
- ASP.NET MVC中的Razor语法
- Android Performance Optimization
- 20145325张梓靖 实验五 ";JAVA的网络编程";
- HBase shell
- java枚举实例
- SQL SERVER 组内排序
- eclipse中tomcat发布失败(Could not delete May be locked by another process)原因及解决办法
- DBA_Oracle数据库运维监控(案例)
- Laravel中URL,ACTION,ROUTE区别
- IOS 图片阴影,圆角等处理
- JAVA时钟
- Linux 数学运算
- php生成批次唯一code(转)
- angularJS插入html及更换iframe的src
- LeetCode(28)-Remove Duplicates from Sorted Array
- js默认参数实现方法
- C#创建安装、卸载部署程序
- Unity3D 代码加密保护工具
热门文章
- Git you are not allowed to push code to protected branches on this project?
- (转)nginx-rtmp-module和ffmpeg搭建实时HLS切片
- 使用urllib2打开网页的三种方法(Python2)
- IOS 十六进制字符串转换成UIColor
- swift实现AES解密
- 【转】如何让虚拟目录里面的webconfig不继承网站的设置
- linux下安装https证书
- LightOJ - 1284 Lights inside 3D Grid —— 期望
- iOS Assertion failure in -[UITableView _classicHeightForRowAtIndexPath:]
- Linux_异常_02_WinSCP上传文件时显示Permission denied