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

2

I've taken a project I'm studying for a course. I installed the dependencies of the node with the command npm install and everything went well. Initializing the webPack with the command ng serve shows this error:

  

Your global Angular CLI version (6.0.1) is greater than your location   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?

    
asked by anonymous 17.05.2018 / 16:56

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 only warning you 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.json file. You should have a line like this below only with version 1.5.0 as informed in your warning.

"@angular/cli": "~1.7.3"

You can hide this message or resolve it.

Look for the upgrade angular project, this site can help you.

Loiane has posted about this on her blog .

I hope it helps.

    
19.08.2018 / 04:59