question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress app gets not installed when dependency is added using yarn

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
brian-manncommented, Nov 1, 2017

@luhmann that error appears to be coming from our old CLI tools which have been deprecated / removed.

Please uninstall them with npm uninstall -g cypress-cli

There’s no reason to ever use that package again.

1reaction
tonydalycommented, Oct 5, 2017

I’m having the same issue.

Node: 8.6.0 Yarn: 1.1.0 (latest)

Installing via NPM is fine, but with yarn the node index.js --exec install fails

Output:
node_modules/cypress/node_modules/chalk/index.js:66
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
                                                                         ^

TypeError: Cannot read property 'close' of undefined
    at Object.<anonymous> (node_modules/cypress/node_modules/chalk/index.js:66:74)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing - Cypress Documentation
This will install Cypress locally as a dev dependency for your project. Make sure that you have already run npm init or have...
Read more >
Install dependencies error for cypress-realworld-app application
I cloned the cypress-realworld-app, and I'm facing an error on the terminal during the yarn install command
Read more >
@applitools/eyes.cypress | Yarn - Package Manager
Install npm package. Install Eyes.Cypress as a local dev dependency in your tested project: npm install --save-dev @applitools/eyes.cypress ...
Read more >
Installing Cypress - w3resource
In this tutorial we will show you how to install Cypress via npm, yarn. We will also show you how to install Cypress...
Read more >
@cypress/github-action - npm
If the project has many dependencies, but you want to install just Cypress you can combine this action with actions/cache and npm i...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found