Update angular ssr project from v16 to v17

  Kiến thức lập trình

How to update a angular ssr project from 16 to 17 properly?

  1. Can I just npm install -g @angular/cli@17 or do I have to uninstall previous version?

  2. Run ng update @angular/core@17 @angular/cli@17 within app’s project directory to update app to Angular v17.

  3. After angular CLI and app is updated to v17, can I just run npm install and this will update all my dependencies and devDependencies lists from package.json? Or do I have to update them manually npm install @angular/{animations,common,compiler,compiler-cli,core,forms,router,etc..}@'^17' [email protected] zone@'^0.14'

  4. Deleting my node_modules directory and package-lock.json file before starting with point 3?

  5. 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
    

LEAVE A COMMENT