1.koa-generator脚手架

1.koa-generator脚手架_第1张图片
image.png

使用ejs模板引擎
koa2 -e projectname
如果出现以下
image.png

需要安装
npm install --update-binary
进入根目录
npm install
运行
node .\bin\www 或者 npm start
1.koa-generator脚手架_第2张图片
image.png

在开发工程中使用(修改后自启动服务器)
npm run dev

你可能感兴趣的:(1.koa-generator脚手架)