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

Issue installing @codeceptjs/ui with node > v14 #258

Closed
julien-binard opened this issue May 14, 2024 · 1 comment · Fixed by #259
Closed

Issue installing @codeceptjs/ui with node > v14 #258

julien-binard opened this issue May 14, 2024 · 1 comment · Fixed by #259
Labels

Comments

@julien-binard
Copy link

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?

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

codeceptVersion:  "3.6.2"
nodeInfo:  21.0.0
osInfo:  Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
cpuInfo:  (12) x64 12th Gen Intel(R) Core(TM) i5-1235U
Copy link

🎉 This issue has been resolved in version 1.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

1 participant