Error trying to initialize Angular project (To disable this Warning use "ng config -g cli.warnings.versionMismatch false")

Asked

Viewed 792 times

1

I picked up a project I’m studying from a course. I installed the Node department with the command npm install and it all worked out. When initializing webPack with the command ng serve shows this error:

Your global Angular CLI version (6.0.1) is Greater than your local version (1.5.0). The local Angular CLI version is used.

To disable this Warning use "ng config -g cli.warnings.versionMismatch false".

Does anyone know what to do in this case ?

  • Same situation as: https://stackoverflow.com/questions/44525746/global-angular-cli-version-greater-than-local-version

  • It seems to me that the error is caused by the local rather than global angular-cli installation. What the answer recommends to do is to install angular-cli globally, npm install --save-dev @angular/cli@latest execute this command on your finished and see if the error still continues.

  • You still haven’t solved :(

1 answer

0

I have the same message.

Your global Angular CLI version (6.0.8) is Greater than your local version (1.7.3). The local Angular CLI version is used.

To disable this Warning use "ng config -g cli.warnings.versionMismatch false".

This is not an error message. This is a Warning just letting you know that you have a different version of the CLI in the project and the one installed on your machine.

You can check this in your package.js file. You should have a line like this one below with only version 1.5.0 as reported in your Warning.

"@angular/cli": "~1.7.3"

You can hide this message or resolve.

Browse to upgrade angular design, this one website can help you.

Loiane posted about it on blog of her a little while ago.

I hope it helps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.