简体   繁体   中英

Is this correct for upgrading Angular 5 to Angular 6 to NOT get the latests version?

Question... I'm on a system running Angular 5.xx and need to upgrade it to 6.xx . I found this posting: Want to upgrade project from Angular v5 to Angular v6

Wont Running the commands below upgrade to the latest versions and not 6?

ng update @angular/cli
ng update @angular/core
ng update @angular/material
ng update rxjs

So, in my scenario wouldn't I need to specify the version for them?

And, if I do then how do I know what version of rxjs I need to go to that works with the latest 6.xx version?

Would this be my format for the calls to obtain whatever the latest version of 6 is?

ng update @angular/cli@^6.0.0
ng update @angular/core@^6.0.0
ng update @angular/material@^6.0.0
* Unsure what version of rxjs to specify

updates below...

Note: to get the.angular-cli.json migrated to angular.json run the command without the @version

ng update @angular/cli

yes you need to specify the version if you want to update to angular 6 where currently angular 8 is running.

For Rxjs: As you know, rxjs 6 supported for angular 6, so, you can use latest version with angular 6.

npm install rxjs@6.0.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM