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

Dependency Conflict with Semantic Release and Chai Versions #28723

Closed
UzaeirAzhar opened this issue Jan 15, 2024 · 2 comments
Closed

Dependency Conflict with Semantic Release and Chai Versions #28723

UzaeirAzhar opened this issue Jan 15, 2024 · 2 comments

Comments

@UzaeirAzhar
Copy link

Current behavior

I am encountering a dependency conflict while attempting to install Cypress dependencies using npm install. The issue appears to be related to conflicting versions of semantic-release and chai.

Desired behavior

Dependencies should be installed without encountering dependency conflicts.

Test code to reproduce

  • Clone repo from here [email protected]:cypress-io/cypress.git
  • Install dependencies using npm i
  • Observe the error

Cypress Version

13.6.2

Node version

18.17.1

Operating System

macOS (Ventura - 13.5.1)

Debug Logs

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/semantic-release
npm ERR!   dev semantic-release@"19.0.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer semantic-release@">=15.8.0 <18.0.0" from @semantic-release/[email protected]
npm ERR! node_modules/@semantic-release/changelog
npm ERR!   dev @semantic-release/changelog@"5.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.


If I change semantic-release version then got this chai dependency issue:


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/chai
npm ERR!   dev chai@"3.5.0" from [email protected]
npm ERR!   cli
npm ERR!     [email protected]
npm ERR!     node_modules/cypress
npm ERR!       workspace cli from the root project
npm ERR!       4 more (@cypress/react, @cypress/react18, @cypress/vue, @cypress/webpack-preprocessor)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer chai@"^4.1.2" from [email protected]
npm ERR! node_modules/chai-string
npm ERR!   dev chai-string@"1.5.0" from [email protected]
npm ERR!   cli
npm ERR!     [email protected]
npm ERR!     node_modules/cypress
npm ERR!       workspace cli from the root project
npm ERR!       4 more (@cypress/react, @cypress/react18, @cypress/vue, @cypress/webpack-preprocessor)

Other

No response

@MikeMcC399
Copy link
Contributor

@UzaeirAzhar

Cypress does not use npm to build from source. It uses Yarn Classic.

See the CONTRIBUTING document, sections

You should therefore not be using npm to build Cypress from source. Also, according to the Requirements document you should be using the version of Node.js specified in the file .node-version which is currently set to

18.15.0

not 18.17.1 which you listed in your issue.

@UzaeirAzhar
Copy link
Author

@MikeMcC399 Thanks for your reply.

Read your mentioned link. its works,

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

No branches or pull requests

2 participants