root@izuf62q4uzgm4b2e4eluf0z /home/wwwroot/test123 (master) $ npm run dev
> wafer2-asr-demo@1.0.0 dev /home/wwwroot/test123
> nodemon --config nodemon.json app.js
[nodemon] 1.14.11
[nodemon] reading config ./nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 13476 to restart
[nodemon] ignoring: ./.git/**/* node_modules/**/node_modules
[nodemon] watching: *.*
[nodemon] watching extensions: js,json
[nodemon] starting `node --harmony app.js`
[nodemon] spawning
[nodemon] child pid: 13487
[nodemon] watching 11 files
/home/wwwroot/test123/middlewares/response.js:6
module.exports = async function (ctx, next) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/wwwroot/test123/app.js:4:18)
at Module._compile (module.js:570:32)
[nodemon] app crashed - waiting for file changes before starting...