Try to update to codeceptjs 3.6.2 via npm update or npm update, or removing package-lock.json and node_modules folder then npm install.
I should be doing something wrong, because when creating a new codeceptjs project in an empty directory, it installs @codeceptjs/ui ^1.1.1 in the package.json.
What do you get instead?
npm resolution error report
While resolving: codeceptjs@0.1.0
Found: codeceptjs@3.6.2
node_modules/codeceptjs
dev codeceptjs@"^3.6.2" from the root project
Could not resolve dependency:
peer codeceptjs@"3.5.14" from @codeceptjs/ui@1.1.1
node_modules/@codeceptjs/ui
dev @codeceptjs/ui@"^1.1.1" from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving:
npm ERR! Found: codeceptjs@3.6.2
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/ui@1.1.1
npm ERR! node_modules/@codeceptjs/ui
npm ERR! dev @codeceptjs/ui@"^1.1.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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/test/.npm/_logs/2024-05-29T16_38_42_433Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /home/test/.npm/_logs/2024-05-29T16_38_42_433Z-debug-0.log
Details
CodeceptJS version: 3.5.14 (trying to update to 3.6.2)
What are you trying to achieve?
Try to update to codeceptjs 3.6.2 via npm update or npm update, or removing package-lock.json and node_modules folder then npm install.
I should be doing something wrong, because when creating a new codeceptjs project in an empty directory, it installs @codeceptjs/ui ^1.1.1 in the package.json.
What do you get instead?
npm resolution error report
While resolving: codeceptjs@0.1.0 Found: codeceptjs@3.6.2 node_modules/codeceptjs dev codeceptjs@"^3.6.2" from the root project
Could not resolve dependency: peer codeceptjs@"3.5.14" from @codeceptjs/ui@1.1.1 node_modules/@codeceptjs/ui dev @codeceptjs/ui@"^1.1.1" from the root project
Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
Details