Raj Kumar

Raj Kumar

  • Tech Writer
  • 47.3k
  • 27.9m

Global Angular CLI version greater than local version?

Jun 3 2020 2:33 PM

If you try to run ng serve on an application without the local install of the CLI (global install only), you will get the following error.
You have to be inside an Angular CLI project in order to use the serve command.
It will also print this message:
Please take the following steps to avoid issues using command prompt:
 
"npm install --save-dev @angular/cli@latest"
 
Run that npm command to update the CLI locally, and avoid the warning that you are getting.


Answers (1)