1st step: type this command (via terminal) at the root of your project: npx ng update
2nd: Look at the suggested update of @angular/cli and apply it (only it). It is of the form: "ng update @angular/cli@", =17 in my case.
I hope it is well translated. I used a translator.