primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.19k stars 4.55k forks source link

ERESOLVE unable to resolve dependency tree #15069

Open LeoAguanta opened 6 months ago

LeoAguanta commented 6 months ago

Describe the bug

unable to install primeng

code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: atlas.clinicmanagement.web@0.0.0 npm ERR! Found: rxjs@7.5.7 npm ERR! node_modules/rxjs npm ERR! rxjs@"~7.5.5" from the root project npm ERR! peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@17.3.0 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^17.2.2" from the root project npm ERR! peer @angular/common@"^17.0.0" from primeng@17.11.0 npm ERR! node_modules/primeng npm ERR! primeng@"17.11.0" from the root project npm ERR! 2 more (@angular/forms, @angular/platform-browser) npm ERR! 2 more (@angular/core, @angular/forms) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer rxjs@"^6.0.0 || ^7.8.1" from primeng@17.11.0 npm ERR! node_modules/primeng npm ERR! primeng@"17.11.0" 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!

Environment

Currently in local invironment

I am using latest version of Angular - v17.2.1 and RxJS v7.5.5

Reproducer

No response

Angular version

v17.2.1

PrimeNG version

17.11.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.11.1

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

dalenguyen commented 6 months ago

Try with npm install primeng --legacy-peer-deps or npm install primeng --force.