I currently have version 9 of angular, now i am trying to update my version of angular, for which I have followed tutorials but none of them work for me.
The steps I am doing is the following.
First I uninstall my current version of angular
Then, i clear cache:
Then i install specific angular CLI:
but when i run ng version it shows me this:
Is the version installed correctly? What does "local version" mean?
CodePudding user response:
The local version is the one defined in the package.json
file of the project you're working on. If you want to use Angular 13 in your project, you need to update package.json
. Be warned, however, that you'll also need to update all dependencies, and that can be thorny. Sometimes it's easier to create a brand new project and copy/pasta everything across…
P.S. More recent versions of Angular CLI expose the ng update
command which help you update a project running a previous version. I don't think V9 had it though…
CodePudding user response:
The Angular have his own documentation of update, put your info into the form and follow that he told you to do. The recomendation is to update version to version;