Skip to content
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

Fix Codeship Basic NPM install #90

Closed
bahmutov opened this issue Jul 9, 2018 · 3 comments
Closed

Fix Codeship Basic NPM install #90

bahmutov opened this issue Jul 9, 2018 · 3 comments
Assignees

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Jul 9, 2018

Failing on run, because Cypress binary is not installed

https://app.codeship.com/projects/134609/builds/35549801?pipeline=07b7a962-0632-408f-aaea-627753de4fc3

> cypress-example-kitchensink@1.0.2 e2e:record /home/rof/src/github.com/cypress-io/cypress-example-kitchensink
> cypress run --record

cypress:cli cli starts with arguments ["/home/rof/.nvm/versions/node/v6.5.0/bin/node","/home/rof/src/github.com/cypress-io/cypress-example-kitchensink/node_modules/.bin/cypress","run","--record"] +0ms
cypress:cli NODE_OPTIONS is not set +0ms
cypress:cli program parsing arguments +3ms
cypress:cli running Cypress +2ms
cypress:cli parsed cli options { record: true } +85ms
cypress:cli verifying Cypress app +0ms
cypress:cli checking environment variables +1ms
cypress:cli checking if executable exists /home/rof/.cache/Cypress/3.0.2/Cypress/Cypress +4ms
The cypress npm package is installed, but the Cypress binary is missing.

We expected the binary to be installed here: /home/rof/.cache/Cypress/3.0.2/Cypress/Cypress

Reasons it may be missing:

- You're caching 'node_modules' but are not caching this path: /home/rof/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /home/rof/.cache/Cypress

Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.

Alternatively, you can run 'cypress install' to download the binary again.

https://on.cypress.io/not-installed-ci-error
----------

Platform: linux (Ubuntu Linux - 14.04)
Cypress Version: 3.0.2
@bahmutov bahmutov self-assigned this Jul 9, 2018
@bahmutov bahmutov changed the title Fix Codeship Basic Fix Codeship Basic NPM install Jul 9, 2018
@bahmutov
Copy link
Contributor Author

bahmutov commented Jul 9, 2018

need to add

  • cypress verify command
  • update caching

@bahmutov
Copy link
Contributor Author

bahmutov commented Jul 9, 2018

Ok, fixed caching folder to point at user profile ~/cache folder via environment variable CYPRESS_CACHE_FOLDER

now back to bug cypress-io/cypress#328 (comment)

@bahmutov bahmutov closed this as completed Jul 9, 2018
@cypress
Copy link

cypress bot commented Apr 11, 2020



Test summary

117 0 0 0


Run details

Project cypress-example-kitchensink
Status Passed
Commit e435e3c7f7
Started Apr 11, 2020 4:04 AM
Ended Apr 11, 2020 4:08 AM
Duration 03:55 💡
OS Windows 10.0.17763
Browser Electron 80

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant