pod4g / hiper

🚀 A statistical analysis tool for performance testing
MIT License
2.7k stars 168 forks source link

SyntaxError: missing ) after argument list #7

Closed Nicksxs closed 6 years ago

Nicksxs commented 6 years ago

i try hiper --help output:

/usr/local/lib/node_modules/hiper/src/index.js:24
performance.run(opts).then(async statisticData => {
                           ^^^^^

SyntaxError: missing ) after argument list
    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 Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)

node version: v6.11.2 npm version: 5.6.0 mac os 10.12.6

pod4g commented 6 years ago

Hi, please upgrade your Node.js version to >=8.5.4, your version too low and not support async/await. thank you for use

zoubingwu commented 6 years ago

@pod4g

it might be better if it can run the version check at first and output a readable warning for more friendly experience.

I can create a pull request for that, what do you think?

pod4g commented 6 years ago

@shadeofgod nice advise, thanks