Akryum / peeky

A fast and fun test runner for Vite & Node 🐈️ Powered by Vite ⚡️
https://peeky.dev
MIT License
681 stars 17 forks source link

Error running for first time #33

Closed sergioIGZ closed 2 years ago

sergioIGZ commented 3 years ago

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
Akryum commented 3 years ago

What is your node version?

sergioIGZ commented 3 years ago

v12.22.1

Akryum commented 3 years ago

Could you try with Node 14 and Node 16 please?

sergioIGZ commented 3 years ago

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

Akryum commented 2 years ago

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