You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing dependency from package.json or from codecept init, got a dependency error.
Needing --force or --legacy-peer-dep
What do you get instead?
Provide console output if related.
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/codeceptjs
npm ERR! dev codeceptjs@"^3.6.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer codeceptjs@"3.5.14" from @codeceptjs/[email protected]
npm ERR! node_modules/@codeceptjs/ui
npm ERR! dev @codeceptjs/ui@"*" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/ijbi8160/.npm/_logs/2024-05-14T09_18_14_355Z-eresolve-report.txt
Provide test source code if related
npx codeceptjs init
or with existing project :
{"name": "codeceptjs-tests","version": "0.1.0","private": true,"scripts": {"codeceptjs": "codeceptjs run --steps","codeceptjs:headless": "HEADLESS=true codeceptjs run --steps","codeceptjs:ui": "codecept-ui --app","codeceptjs:demo": "codeceptjs run --steps -c node_modules/@codeceptjs/examples","codeceptjs:demo:headless": "HEADLESS=true codeceptjs run --steps -c node_modules/@codeceptjs/examples","codeceptjs:demo:ui": "codecept-ui --app -c node_modules/@codeceptjs/examples"},"devDependencies": {"@codeceptjs/configure": "^1.0.1","@codeceptjs/examples": "^1.2.4","@codeceptjs/ui": "^1.1.1","codeceptjs": "^3.6.1","playwright": "^1.43.1"}}
npm i
Environment info
Copy and paste your environment info by using npx codeceptjs info
Also tried node v16, v18 & v20
Tried under windows also
What are you trying to achieve?
When installing dependency from package.json or from codecept init, got a dependency error.
Needing --force or --legacy-peer-dep
What do you get instead?
or with existing project :
Environment info
npx codeceptjs info
Also tried node v16, v18 & v20
Tried under windows also
The text was updated successfully, but these errors were encountered: