Update Angular2 PrimeNG version 1.1.4 to last version
14,334
Solution 1
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
Solution 2
You only need run npm update --save
into the folder that contains your package.json
Before:
"dependencies": {
....
"primeng": "^1.1.4",
....
},
After:
"dependencies": {
....
"primeng": "^2.0.5",
....
},
Note: this command update whole your dependencies...
Author by
Pedro Marques
Updated on June 21, 2022Comments
-
Pedro Marques almost 2 years
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