Your global Angular CLI version is greater than your local version
Angular CLI ng build command gives below or similar warning,
Your global Angular CLI version (x.x.x) is greater than your local
version (x.x.x). The local Angular CLI version is used.
Resolution
This error I found to be due to the difference in Angular CLI installed globally Vs local project workspace.
This error is most visible when you are trying to build an older Angular framework-based application but I have the latest CLI available.
If the Angular version you are using is critical and you don’t want to upgrade you can simply ignore this warning.
If you don’t want to see this warning on the CLI or command terminal .please use the below command to ignore it.
ng config -g cli.warnings.versionMismatch false
If you would like to use any latest version features, then you may consider upgrading to the current Angular CLI version.
npm install -g @angular/cli
Once you run the above commands, you shall be able to fix the warning.
For any issue please visit this article.
Do you have any comments or ideas or any better suggestions to share?
Please sound off your comments below.
Happy Coding !!
Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.