Angular 16 dependency error on installation

UI Components for Angular
Post Reply
morsagmon
Posts: 5
Joined: 19 Jul 2023, 20:39

19 Jul 2023, 20:45

Hello team.
I'm new to PrimeNG, attempted to install in a clean new Angular 16.1.4 (--standalone) app:

Code: Select all

npm install primeng
Seems PrimeNG is not supporting Angular 16 yet? See error:

Code: Select all

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-dream-team@0.0.0      
npm ERR! Found: @angular/common@16.1.5
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"^16.1.0" from the root project     
npm ERR! 
npm ERR! peer @angular/common@"^15.2.1" from primeng@15.4.6-lts
npm ERR! node_modules/primeng
npm ERR!   primeng@"*" 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.
I really don't want to start dirty with --force and such.
Please advise: how to properly install for Angular?

Thanks!
Mor

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests