8_Upgrading Angular Version - mukeshrathore/base-project GitHub Wiki

angular version upgrade

Option 1: Please refer angular Update site for upgrading current angular version to updated one.
Option 2: In case the Angular update command doesn't work please follow below steps:

  1. Remove the existing global angular code: npm uninstall -g @angular/cli
  2. clean npm cache: npm cache clean --force
  3. verify cache whether it's empty or not: npm cache verify. Verify output also shows the path where npm cache resides. e.g. (~\AppData\Roaming\npm-cache).. if the cache is not empty(Content verified:0(0 bytes)) then go to path of physical drive and remove contents under 'npm-cache' folder and try verifying the cached content again with the help of command.
  4. install angular globally by npm install -g @angular/cli.
  5. after installation, please check the version using the command:ng version
  6. create a new application using the same parameters as shown in Basic setup wiki page.
  7. copy and paste the package.json into your existing repo/app.
  8. remove node modules from the existing app.
  9. once node modules are deleted, run the npm install command to install node modules dependencies based on the new version.
  10. compile and start lib and app.