. Advertisement .
..3..
. Advertisement .
..4..
The error: “This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead” is a common error that can show up in many ways. In this blog, we will go through some of the ways you can fix this issue. Read on.
How To Solve The Error: “This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead”?
You may experience the following issue:
This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead
To fix this error, simply adjust the version of angular-devkit/build-angular from 13.0.2 to 12.2.8, and your problem should be resolved. The second option is in Package.json, simply change @angular-devkit/build-angular. Simply find this line in the package.json file: “@angular-devkit/build-angular”: “^13.0.2” and substitute it with this line: “@angular-devkit/build-angular”: “~0.1102.3”. Now, operate your app to see if your error has been resolved.
Option 1: Adjust build-angular
Simply adjust the version of angular-devkit/build-angular from 13.0.2 to 12.2.8, and your problem should be resolved.
Option 2: Use the following command
Simply run the following command in your terminal.
npm i @angular-devkit/build-an[email protected] –force
npm i @angular/[email protected]
Now, your problem should be resolved.
Option 3: Modify @angular-devkit/build-angular in Package.json
Simply change @angular-devkit/build-angular. Simply find this line in the package.json file:
“@angular-devkit/build-angular”: “^13.0.2”
and substitute it with this line:
“@angular-devkit/build-angular”: “~0.1102.3”.
Now, operate your app to see if your error has been resolved.
Conclusion
We hope you enjoyed our article about the error. With this knowledge, we know that you can fix your error: “This version of CLI is only compatible with Angular versions ^13.0.0, but Angular version 12.2.13 was found instead” quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Leave a comment