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
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) — committed to eagleflo/cypress by eagleflo 2 years ago
- fix: Improve heuristic for --openssl-legacy-provider (#19320) (#19522) Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> — committed to cypress-io/cypress by eagleflo 2 years ago
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:
nodeVersionis currently set tobundledin thecypress.jsonconfiguration file. As of Cypress version9.0.0the default behavior ofnodeVersionhas changed to always use the version of Node used to start cypress via the cli. WhennodeVersionis set tobundled, Cypress will use the version of Node bundled with electron. This can cause problems running certain plugins or integrations. As thenodeVersionconfiguration option will be removed in a future release, it is recommended to remove thenodeVersionconfiguration option fromcypress.json.