koa2 安装环境

1.安装koa2

npm install koa@2 -g

2.创建项目

(1)安装koa2生成器

npm install koa-generator -g

(2)koa2生成一个test项目

koa test

cd test

npm  install

npm start

posted @ 2018-03-19 08:35  探索之路慢慢  阅读(143)  评论(0编辑  收藏  举报