Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Cypress app gets not installed when dependency is added using yarn #6

Closed
bahmutov opened this issue Sep 13, 2017 · 1 comment
Closed

Comments

@bahmutov
Copy link
Contributor

@fvanwijk commented on Tue Sep 12 2017

  • Operating System: OSX 10.12.6
  • Cypress Version: 0.20
  • Browser Version: n/a

Is this a Feature or Bug?

Bug

Current behavior:

I already have a working Cypress project and I upgraded to 0.20 by reinstalling it locally using yarn

$ yarn add -D cypress

Calling npm cypress:open (= ./node_modules/.bin/cypress open) gives the error that Cypress is not installed yet. I have to install Cypress manually by calling ./node_modules/.bin/cypress install.

Desired behavior:

I want cypress install to trigger automatically after adding with yarn so that it can be opened immediately.


@bahmutov commented on Tue Sep 12 2017

Hmm, we use postinstall script to actually install the binary


@bahmutov commented on Wed Sep 13 2017

Might be related to Yarn bug yarnpkg/yarn#853

bahmutov added a commit that referenced this issue Sep 13, 2017
@iganzina-epam
Copy link

Had similar issue, getting following error while running yarn install and having "cypress" dependency in package.json:

error Couldn't find package "@cypress/listr-verbose-renderer" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Couldn't find package "@cypress/xvfb" on the "npm" registry.

The reason was that in yarn global config I had our company's registry as a default one. So, adding “@cypress:registry” “https://registry.npmjs.org/” to .yarnrc and to .npmrc solved the issue.

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

No branches or pull requests

2 participants