安装脚手架:
cnpm install -g koa-generator
安装项目 -e使用es6语法
koa2 -e koa2-learn
进入新建的项目并安装
cd koa2-learn && npm install
执行
cnpm install --update-binary
打开webstrom,打开对应项目文件
配置启动,选择dev
打开chrome,输入地址http://localhost:3000/
安装脚手架:
cnpm install -g koa-generator
安装项目 -e使用es6语法
koa2 -e koa2-learn
进入新建的项目并安装
cd koa2-learn && npm install
执行
cnpm install --update-binary
打开webstrom,打开对应项目文件
配置启动,选择dev
打开chrome,输入地址http://localhost:3000/