Update your existing project to the new version of Angular code example
Example: how to update angular version
content_copy
ng update @angular/cli @angular/core
content_copy
ng update @angular/cli @angular/core