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:
- Remove the existing global angular code:
npm uninstall -g @angular/cli
- clean npm cache:
npm cache clean --force
- 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. - install angular globally by
npm install -g @angular/cli
. - after installation, please check the version using the command:
ng version
- create a new application using the same parameters as shown in Basic setup wiki page.
- copy and paste the package.json into your existing repo/app.
- remove node modules from the existing app.
- once node modules are deleted, run the
npm install
command to install node modules dependencies based on the new version. - compile and start lib and app.