koa2快速安装

快速安装那其实就是generator(生成器)哈哈哈

1.安装koa-generator

$ npm install -g koa-generator

 

2.创建应用

  • create the app koa1.x

     $ koa /tmp/foo && cd /tmp/foo
     $ npm install
     $ npm start

     

  • create the app koa2.x

    
    
     $ koa2 /tmp/foo && cd /tmp/foo
      $ npm install
      $ npm start
    
    

     

    
    

哈哈哈又废话了一篇…………

posted @ 2017-03-14 11:04  希哈  阅读(1307)  评论(0编辑  收藏  举报