


Navigate to your local Angular project folder and execute the below commands. To update Angular CLI version in your local projects use the following commands. So mostly you need to update your local Angular CLI version as well Update Angular CLI version Locally

Sudo npm install -g global Angular CLI version is greater than your local version.The local Angular CLI version is usedĪfter updating Angular CLI globally you might get this warning if your local project’s angular cli version less than the global angular cli version.Īs local packages have more priority than global packages you will get Your global Angular CLI version is greater than your local version.The local Angular CLI version is used warning. Sudo npm cache clean or sudo npm cache verify (if npm > 5) Npm install -g you are using MAC or linux systems you might need to add the prefix sudo before npm sudo npm uninstall -g angular-cli Npm cache clean or npm cache verify (if npm > 5) Then install latest Angular CLI version using npm install -g command.Then run npm cache verify command to clear the node packages cache.First uninstall the existing Angular cli packages.Steps To update Angular CLI version globally in your system. To update Angular CLI to a new version, It’s better to update both the global Angular CLI installed in your machine as well as your project’s local Angular CLI. First Update your Angular app to Angular 9.īefore updating check the Angular version installed in your system by using ng -version command.And if you are using Angular 8 or Angular 6,5, 4 etc versions, Do not try to update to latest version of Angular Directly.That is, if you are using Angular 10 then update the application to Angular 11 version.Its always advisable to update your app to its next major version.Important things to remember while updating Angular applications. Major breaking changes in Angular 10 version.Follow the official Angular update recommendations.Your global Angular CLI version is greater than your local version.The local Angular CLI version is used.Important things to remember while updating Angular applications.
