-
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
Provide mechanism to skip binary download/install during "npm install" #1005
Comments
BTW you can do this right now with NPM has always supported this feature. Can you just submit a PR for this? It looks like you've already written the code. Working in the CLI code is super easy. |
Working on a PR now. |
That is true. Just throwing it out there in case none of your other deps depended on them ;-) |
Submitted a PR: #1008. |
Released in |
Thanks! Updated and tested in our CI/CD pipeline and it works like a charm. Really excited about Cypress. Y'all have a great product. Glad to contribute to an Atlanta startup 😁 |
@raygesualdo I can get the skip working just fine, but I get a complaint about "No version of Cypress is installed.". Looking into how I get that message, it looks like the path the CLI looks for is hard-coded to check Actually I might have figured it out... If I call I wonder if an environment variable to the path to the binary should be supported... |
I can't seem to make heroku skip the install. Cypress is installed as a dev dependency. and my "heroku-prebuild" is
I can see Cypress unzipping and installing when I push to heroku. |
Is this a Feature or Bug?
Feature
Current behavior:
When running
npm install
with Cypress listed as a dependency, the binary is always downloaded, unzipped and installed.Desired behavior:
Provide a mechanism (most likely an environment variable such as
CYPRESS_SKIP_BINARY_INSTALL
) where the user can manually skip the binary install process.Impetus
We have a React project with Cypress tests that are run in our CI pipeline (currently Travis). We also have our project being built and deployed by a different service (currently Netlify). Cypress is not needed during the build/deploy process but is being installed anyway. This adds additional load and time to our build process.
Test code:
In
/cli/test/lib/tasks/install_spec.js
:Additional Info (images, stack traces, etc)
Possible implementation at cli/lib/tasks/install.js#L176:
The text was updated successfully, but these errors were encountered: