NPM: Conflicting peer dependency: listr2@10.2.1
envgap__angular__angular-cli-33875
01 / FAILURE SIGNATURE
As reported upstream
I was updating from the previous version, but a clean install also gives this error.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
712e74e80dd8731534938f50f34fd381de6ac3fb- Manifest
packages/angular/build/package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
angular/angular-cli #33875 · read the original issue
### Command
other
### Is this a regression?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
Updating from 21.2.7
### Description
After updating to the latest version of the CLI, I get this warning.
```
npm -g install @angular/cli@22.1.4
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @listr2/prompt-adapter-inquirer@4.2.4
npm warn Found: listr2@10.2.2
npm warn node_modules/@angular/cli/node_modules/listr2
npm warn listr2@"10.2.2" from @angular/cli@22.1.4
npm warn node_modules/@angular/cli
npm warn @angular/cli@"22.1.4" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer listr2@"10.2.1" from @listr2/prompt-adapter-inquirer@4.2.4
npm warn node_modules/@angular/cli/node_modules/@listr2/prompt-adapter-inquirer
npm warn @listr2/prompt-adapter-inquirer@"4.2.4" from @angular/cli@22.1.4
npm warn node_modules/@angular/cli
npm warn
npm warn Conflicting peer dependency: listr2@10.2.1
npm warn node_modules/listr2
npm warn peer listr2@"10.2.1" from @listr2/prompt-adapter-inquirer@4.2.4
npm warn node_modules/@angular/cli/node_modules/@listr2/prompt-adapter-inquirer
npm warn @listr2/prompt-adapter-inquirer@"4.2.4" from @angular/cli@22.1.4
npm warn node_modules/@angular/cli
added 6 packages, removed 122 packages, and changed 256 packages in 24s
76 packages are looking for funding
run `npm fund` for details
```
### Minimal Reproduction
`npm -g install @angular/cli`
I was updating from the previous version, but a clean install also gives this error.
### Exception or Error
```text
```
### Your Environment
```text
ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 22.1.4
Node.js : 24.19.0
Package Manager : npm 12.0.2
Operating System : win32 x64
```
### Anything else relevant?
_No response_04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]