安装koa2 npm install -g koa-generator 创建项目 koa2 -e koa2-learn 安装依赖 cd koa2-learn/ cnpm install 启动项目 npm run dev 在浏览器中输入http://localhost:3000/