Skip to content

NPM: Conflicting peer dependency: listr2@10.2.1 #33875

Description

@sake12

Command

other

Is this a regression?

  • 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


Your Environment

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions