cypress: Cypress 9.1.1 + Node 17.2 (Win 11) Crashes

Current behavior

Same as issue which is fixed for Cypress v9.1.1. and Node 17.1 seems to have returned for Cypressv9.1.1. and Node 17.2 : https://github.com/cypress-io/cypress/issues/18914

Desired behavior

No response

Test code to reproduce

no test code required

Cypress Version

9.1.1.

Other

Adding "nodeVersion": "bundled" in the cypress.json works around the issue.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 14
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I am experiencing the same issue on MacOS (11.2.1, Big Sur). I upgraded from cypress 9.1.0 to version 9.1.1 and this immediately started happening; no issues whatsoever beforehand while on version 9.1.0.

I’ve been on node version 17.0.1 & npm version 8.1.0 for a while.

Steps to reproduce: Upgrade cypress from 9.1.0 to 9.1.1 via command npm install --save-dev cypress@9.1.1

–> Unable to launch cypress test runner or run in headless mode –> Received the following message output in the terminal …/17.0.1/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS

Workaround: As was mentioned, adding “nodeVersion”: “bundled” in the cypress.json temporarily fixes the issue

The workaround works, but, you get this message:

Deprecation Warning: nodeVersion is currently set to bundled in the cypress.json configuration file. As of Cypress version 9.0.0 the default behavior of nodeVersion has changed to always use the version of Node used to start cypress via the cli. When nodeVersion is set to bundled, Cypress will use the version of Node bundled with electron. This can cause problems running certain plugins or integrations. As the nodeVersion configuration option will be removed in a future release, it is recommended to remove the nodeVersion configuration option from cypress.json.