How to update a angular ssr project from 16 to 17 properly?
-
Can I just
npm install -g @angular/cli@17
or do I have to uninstall previous version? -
Run
ng update @angular/core@17 @angular/cli@17
within app’s project directory to update app to Angular v17. -
After angular CLI and app is updated to v17, can I just run
npm install
and this will update all mydependencies
anddevDependencies
lists from package.json? Or do I have to update them manuallynpm install @angular/{animations,common,compiler,compiler-cli,core,forms,router,etc..}@'^17' [email protected] zone@'^0.14'
-
Deleting my node_modules directory and package-lock.json file before starting with point 3?
-
Update other dependencies
npm update
?Angular CLI: 17.0.8 Node: 20.9.0 Package Manager: npm 10.1.0 OS: linux x64 Angular: 16.2.8 ... animations, common, compiler, compiler-cli, core, forms ... localize, platform-browser, platform-browser-dynamic ... platform-server, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1602.6 @angular-devkit/build-angular 16.2.6 @angular-devkit/core 16.2.5 @angular-devkit/schematics 16.2.5 @angular/cdk 16.2.7 @angular/fire 7.6.1 @angular/material 16.2.7 @schematics/angular 16.2.5 rxjs 7.8.1 typescript 5.1.6 zone.js 0.13.3