Akryum/peeky

Error running for first time

sergioIGZ opened this issue · 5 comments

I'm getting this error:
just doing the first stepsnpm i -D @peeky/cli => including the scripts in the package and then running the tests as npm run test

> peeky run

...some_path/node_modules/@peeky/cli/dist/bin.js:10863
    const port = options.port ?? process.env.PORT ?? await import_portfinder.default.getPortPromise({
                               ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

What is your node version?

v12.22.1

Could you try with Node 14 and Node 16 please?

It worked thank, unfortunately I cannot change the node version for my project because of some constraints.
Thank you anyways :)

I don't think I'll have enough time to support Node 12. Closing for now.