-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress no longer works on AWS CodeBuild #1373
Comments
Hmm, we have upgraded to new Electron version, which is 8, so we moved our base image and CLI package to Node 8. Can you change the environment on AWS CodeBuild to be Node 8? |
Unfortunately not. Not without some Docker hacking which is a bit beyond my skills. Out of the box, CodeBuild only goes up to Node.js v7.0.0. |
Hmm, ok this is definitely wrong - our CLI package (that's what gets installed from NPM) should only require Node >= 4 but the installed package json for 2.0.3 has much stricter requirements "engines": {
"node": ">=8.2.1"
}
"version": "2.0.3",
"warnings": [
{
"code": "ENOTSUP",
"required": {
"node": ">=8.2.1"
},
"pkgid": "cypress@2.0.3"
},
{
"code": "ENOTSUP",
"required": {
"node": ">=8.2.1"
},
"pkgid": "cypress@2.0.3"
}
] this might be introduced during build process, I will investigate. |
I'm not 100% sure, but let me check and get back to you. |
Yeah weird... we'll look into it. The CLI's https://github.com/cypress-io/cypress/blob/develop/cli/package.json#L10 |
Another note: we test every NPM package against different node versions in https://github.com/cypress-io/cypress-test-node-versions
|
Seems we are overwriting engines in the CLI package.json with engines from the root package. This is wrong. When testing we should set config value to error in this case (https://docs.npmjs.com/misc/config#engine-strict) and then fix the engines property. |
We'll get a patch release out this weekend. |
Ah, glad I reported this! I thought it seemed odd that Cypress was unhappy about being installed with node 7.x. Thanks! |
Released in |
Cypress 2.x no longer works on AWS CodeBuild. I get this error during the testing phase:
What's the recommended course of action here?
The text was updated successfully, but these errors were encountered: