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 #25

Open
amit-srvic opened this issue Aug 2, 2023 · 0 comments
Open

dependency conflict #25

amit-srvic opened this issue Aug 2, 2023 · 0 comments

Comments

@amit-srvic
Copy link

amit-srvic commented Aug 2, 2023

I am trying to use this repo for a PoC for a client and updated the dependencies to latest:

"dependencies": {
    "@types/chalk": "2.2.0",
    "@types/minimist": "1.2.2",
    "@types/node": "20.4.5",
    "chalk": "5.3.0",
    "jsome": "2.5.0",
    "minimist": "1.2.8",
    "rimraf": "5.0.1",
    "slash": "5.1.0",
    "testcafe": "3.1.0",
    "testcafe-browser-provider-saucelabs": "2.0.0",
    "testcafe-reporter-cucumber-json": "6.3.0",
    "ts-node": "10.9.1",
    "typescript": "3.9.6"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "3.6.1",
    "@typescript-eslint/parser": "3.6.1",
    "eslint": "8.46.0",
    "eslint-config-prettier": "8.9.0",
    "eslint-plugin-import": "2.28.0",
    "eslint-plugin-prettier": "5.0.0",
    "eslint-plugin-testcafe": "0.2.1",
    "mem": "9.0.2",
    "multiple-cucumber-html-reporter": "3.4.0",
    "prettier": "3.0.0"
  },

and getting the following error on npm install

npm install
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/testcafe
npm ERR!   testcafe@"3.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer testcafe@"1.x" from [email protected]
npm ERR! node_modules/testcafe-reporter-cucumber-json
npm ERR!   testcafe-reporter-cucumber-json@"6.3.0" 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.

Need more information on compatibility between testcafe-reporter-cucumber-json and testcafe latest versions.
I don't want to use --force unless it's the only option.

@hdorgeval any help would be highly appreciated.

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

1 participant