Here is output of ng v:
Angular CLI: 9.1.13
Node: 12.22.12
OS: win32 x64
Angular: 9.1.13
Surprisingly when I type ng build I get this error:
This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
but Angular version 9.1.13 was found instead.
In other similar questions Angular CLI version were higher or lower than Angular version and with an upgrade or downgrade PO could usually solve the problem. However, in this case Angular CLI and Angular version is the same and I still receive the error.
I tried all this commands:
npm uninstall -g @angular/cli
npm cache verify --force
npm install -g @angular/cli@9.1.13
npm uninstall @angular/cli
npm install @angular/cli@9.1.13
npm install
Update:
As @Yanis-git asked in comments I run ng --version in \node_modules\.bin:
Angular CLI: 9.1.13
Node: 12.22.12
OS: win32 x64
Angular: 9.1.13
... cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes
Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.19
@angular-devkit/build-angular   13.3.7
@angular-devkit/build-webpack   0.1303.7
@angular-devkit/core            13.3.7
@angular-devkit/schematics      13.3.7
@angular/animations             9.1.12
@angular/cdk                    10.2.5
@angular/fire                   6.1.4
@angular/google-maps            9.2.4
@angular/http                   4.4.7
@ngtools/webpack                13.3.7
@schematics/angular             13.3.7
@schematics/update              0.901.13
rxjs                            6.6.7
typescript                      3.6.5
webpack                         5.70.0
 
     
     
     
    