primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Can not install with [email protected]

Open steve3d opened this issue 3 years ago • 7 comments

Describe the bug

primeng-16.0.0 can not install with [email protected], in package.json the version is set to ~16.0.0 which exclude any 16.x version:

https://github.com/primefaces/primeng/blob/6fd8a21b3855a2e76282dead9682eabbe84c522f/src/app/components/package.json#L21

this will only allow primeng be installed with [email protected] version.

Environment

no matter.

Reproducer

No response

Angular version

16.1.0

PrimeNG version

16.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v18.16.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

should be installed with [email protected]

steve3d avatar Jun 14 '23 03:06 steve3d

Same for me, please review this.

Thanks a lot

adri95cadiz avatar Jun 14 '23 12:06 adri95cadiz

+1

ces6jedi avatar Jun 14 '23 13:06 ces6jedi

+1

igordanilovski avatar Jun 14 '23 15:06 igordanilovski

I suggest u to install with npm i -f

I didn't notice issues in my projects

cretara avatar Jun 14 '23 16:06 cretara

Yes, it works with npm i -f but that is not a solution, they need to fix this.

igordanilovski avatar Jun 14 '23 16:06 igordanilovski

It's not working for me with Angular 16.0.0

Below is npm output and my package.json and package-lock.json

PS C:\Users\gotta\Desktop\New folder\Streaming> npm i primeng
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR!   peer @angular/core@"16.1.1" from @angular/[email protected]
npm ERR!   node_modules/@angular/animations
npm ERR!     peerOptional @angular/animations@"16.1.1" from @angular/[email protected]
npm ERR!     node_modules/@angular/platform-browser
npm ERR!       peer @angular/platform-browser@"16.1.1" from @angular/[email protected]
npm ERR!       node_modules/@angular/forms
npm ERR!         @angular/forms@"^16.0.0" from the root project
npm ERR!       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!     @angular/animations@"^16.0.0" from the root project
npm ERR!   peer @angular/core@"16.1.1" from @angular/[email protected]
npm ERR!   node_modules/@angular/common
npm ERR!     peer @angular/common@"16.1.1" from @angular/[email protected]
npm ERR!     node_modules/@angular/forms
npm ERR!       @angular/forms@"^16.0.0" from the root project
npm ERR!     peer @angular/common@"16.1.1" from @angular/[email protected]
npm ERR!     node_modules/@angular/platform-browser
npm ERR!       peer @angular/platform-browser@"16.1.1" from @angular/[email protected]
npm ERR!       node_modules/@angular/forms
npm ERR!         @angular/forms@"^16.0.0" from the root project
npm ERR!       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!     3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!   6 more (@angular/compiler, @angular/forms, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! primeng@"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR!   peer @angular/core@"~16.0.0" from [email protected]
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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\gotta\AppData\Local\npm-cache\_logs\2023-06-14T23_27_42_553Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\gotta\AppData\Local\npm-cache\_logs\2023-06-14T23_27_42_553Z-debug-0.log

package.json.txt package-lock.json.txt

gottaloveit avatar Jun 14 '23 23:06 gottaloveit

Yes, it works with npm i -f but that is not a solution, they need to fix this.

Sure, it's true, that's an issue that must be solved.

Sami issue happens with Angular 16.1.1 released yesterday

cretara avatar Jun 15 '23 08:06 cretara