Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Angular2 PrimeNG version 1.1.4 to last version

I'm relatively new to angular2, so I was wondering how could I update my version(1.1.4) to last version!

I'm working on version 2.0.0-rc.5 of angular2.

Already tried

npm install primeng --save

but package.json still holds this value: ""primeng": "^1.1.4","

the package.json from the root directory of angular, and also of the primeng in node_modules directory

like image 821
Pedro Marques Avatar asked Apr 06 '17 15:04

Pedro Marques


People also ask

Which version of PrimeNG is compatible with Angular 11?

PrimeNG 11 depends on Angular 11 and is fully compatible with it. As it is always suggested, use the PrimeNG whose major version matches your Angular version e.g. PrimeNG 10 with Angular 10.

Which version of PrimeNG is compatible with Angular 12?

PrimeNG 12.0. 0 is now available, bringing first-class Angular 12 support with a new grey scheme, as well as other changes and responsive updates to the components. PrimeNG v12. 0.0 is dependent on and fully compatible with Angular 12.


1 Answers

For future references: Had to uninstall with:

npm uninstall primeng --save

Run the code below to avoid unnecessary errors:

npm cache verify

And then install with the version you want

npm install [email protected] --save

thanks for you answer though

like image 184
Pedro Marques Avatar answered Nov 01 '22 08:11

Pedro Marques