How to run simple app with koa2?

后端 未结 2 901
鱼传尺愫
鱼传尺愫 2021-01-21 19:18

Problem

I am trying to run simple http server using koa2, but have problems running it.

It uses es6 that is expected to work in future node.js v

2条回答
  •  梦谈多话
    2021-01-21 20:09

    Upgraded your node version to at least 7.6 after that there is no need to transpile your code using babel which is highly avoidable in production.Node >7.6 version support async/await which is very powerful.

提交回复
热议问题