安裝腳手架:
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/