mirror of
https://github.com/qianguyihao/Web.git
synced 2024-11-01 13:34:46 +08:00
31 lines
452 B
JavaScript
31 lines
452 B
JavaScript
|
|
|||
|
|
|||
|
## Express介绍
|
|||
|
|
|||
|
- Express 官方网站:<https://expressjs.com/>
|
|||
|
|
|||
|
- Express 官方网站(中文):<https://expressjs.com/zh-cn/>
|
|||
|
|
|||
|
|
|||
|
## Express 安装
|
|||
|
|
|||
|
安装 express:
|
|||
|
|
|||
|
```bash
|
|||
|
npm install express -g
|
|||
|
```
|
|||
|
|
|||
|
安装 express-generator,安装之后,可使用应用程序生成器工具 (express) 快速创建应用程序框架。
|
|||
|
|
|||
|
```bash
|
|||
|
npm install express-generator -g
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
|
|||
|
查看安装的 express 版本:
|
|||
|
|
|||
|
```bash
|
|||
|
express --version
|
|||
|
|
|||
|
```
|