Sunday, 26 June 2022

Upgrade Angular project to Latest version

After UpgradeBefore Upgrade

1.    Make sure you have upgraded node js to the LTS version and then follow the below.

2.    Go to your project folder and open the terminal and run the below commands:


>npm uninstall --save-dev angular/cli

>npm i -g npm-check-updates

>ncu -u

ERROR (if the below error occurs follow the below link to fix in node js config): 

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead


>npm install

>npm uninstall @angular-devkit/build-angular

>npm install --save-dev @angular-devkit/build-angular
 
>npm install --save --legacy-peer-deps

No comments:

Post a Comment

Extracting Nupkg files using command line

Rename it to zip first then extract files as below 1.     Rename-Item -Path A_Package.nupkg -NewName A_Package.zip 2.     Make sure to repla...