trentrand / cypress-utils

⚙ Easily parallelize and stress-test your Cypress tests
MIT License
25 stars 6 forks source link

Error #17

Closed pattywap closed 3 years ago

pattywap commented 3 years ago

When running, npx cypress-utils --help, i get this.

`/home/user/node_modules/cypress-utils/index.js:185 argv.testFiles = argv.testFiles ?? cypressConfig.testFiles ?? '*/.*'; ^

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 `

trentrand commented 3 years ago

Your installation of NodeJS doesn't seem to recognize the nullish coalescing operator (??). You'll need to upgrade NodeJS to version 14.0.0 or newer.

I've updated the package.json file to include this node engine version requirement. See commit ef64600.

trentrand commented 3 years ago

This has been fixed in version v2.1.1.

Be sure to use Node v14.0.0 or newer!

Thank you for reporting the issue!