-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Error when installing cypress using Node.js version < 8.12.0 #6512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when installing cypress using Node.js version < 8.12.0 #6512
Comments
The code for this is done in cypress-io/cypress#6513, but has yet to be released. |
I actually don't think this is closed. We really need to go back to execa 1.0.0, because 2.0.1 was simply changing the engines field and the real effective non-support for 8.0.0 went into 2.0.0. This wasn't caught though because I don't think our node-version tests are running properly: #6559 |
I verified this by installing the binary from |
FYI the same here, caught 2 weeks ago after trying to switch to the new version - 4.0.0
|
The code for this is done in cypress-io/cypress#6560, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When installing Cypress with Node.js version less than 8.12.0 install is prevented by the following errors.
yarn
Warning you are not on compatible engine
npm install
Even more cryptic - there's just an execa error
Desired behavior:
Cypress install should support Node.js 8+ as of 4.0.0, so should support an install with Node.js versions as low as 8.0.0
Why
Execa introduced this breaking change (a fix for a change that should have gone in their 2.0.0 release I guess) without actually noting it as a breaking change., requiring at least Node.js 8.12.0 in their 2.0.1 release.
Execa 2.0.1 release notes: https://github.com/sindresorhus/execa/releases/tag/v2.0.1
You can see this change by diffing the package.json from the releases
Code required
We should revert execa dep in the cli back down to 2.0.0.
Versions
Cypress 4.0.0
The text was updated successfully, but these errors were encountered: