After the angular update. ionic start gives errors

Ionic start gives errors:

263 error While resolving: test2@0.0.1
263 error Found: @angular/compiler@20.3.25e[2me[22m
263 error e[2mnode_modules/@angular/compilere[22m
263 error   @angular/compiler@"^20.0.0" from the root project
263 error   e[95mpeere[39m @angular/compiler@"20.3.25" from @angular/compiler-cli@20.3.25e[2me[22m
263 error   e[2mnode_modules/@angular/compiler-clie[22m
263 error     e[34mdeve[39m @angular/compiler-cli@"^20.0.0" from the root project
263 error     e[95mpeere[39m @angular/compiler-cli@"^20.0.0" from @angular-devkit/build-angular@20.3.28e[2me[22m
263 error     e[2mnode_modules/@angular-devkit/build-angulare[22m
263 error       e[34mdeve[39m @angular-devkit/build-angular@"^20.0.0" from the root project
263 error
263 error Could not resolve dependency:
263 error @angular/animations@"^20.0.0" from the root project
263 error
263 error Conflicting peer dependency: @angular/compiler@20.1.8e[2me[22m
263 error e[2mnode_modules/@angular/compilere[22m
263 error   peerOptional @angular/compiler@"20.1.8" from @angular/core@20.1.8e[2me[22m
263 error   e[2mnode_modules/@angular/coree[22m
263 error     @angular/core@"^20.0.0" from the root project
263 error     e[95mpeere[39m @angular/core@"20.1.8" from @angular/animations@20.1.8e[2me[22m
263 error     e[2mnode_modules/@angular/animationse[22m
263 error       @angular/animations@"^20.0.0" from the root project
263 error     1 more (@angular/common)
263 error
263 error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.


Ionic cli seems to fall back to 5.4.16 for some reason, although I have updated it to 7 something multiple times

Iionic -v shows 5.4.16 after trying to create the project but after computer restart 7.2.1 again.

I somehow had a local installation of old Ionic in that specific directory where I was trying to make a new project. I didn’t even see any Ionic installation files there (I had show hidden files on). Just

npm uninstall ionic

in the right directory did it for me.