安装Express开发框架
[root@BobServerStation local]# npm install express -gd
[root@BobServerStation local]# npm install -g express-generator
安装成功:
[root@BobServerStation local]# express --version创建Demo项目
[root@BobServerStation local]# express DemoApp
[root@BobServerStation local]# cd DemoApp
[root@BobServerStation DemoApp]# 进入项目目录并安装项目依赖组件
[root@BobServerStation DemoApp]# npm install依赖组件安装完成后启动app
[root@BobServerStation DemoApp]# npm start
浏览器中输入:127.0.0.1:3000
会出现:
Express
Welcome to Express
成功~ end~~