cnpm install -g koa-generator koa2 -e koa2-learn cd koa2-learn/ cnpm install
使用如下运行
DEBUG=koa2-learn:* npm start
改变服务端的脚本会在控制台输出,记得使用的是另外的一种运行命令为npm run dev