title: How to Update Angular Cli
body: <p>Just to give you some context.</p>
  
  <p>I was running a project and after ng serve I was getting this warning message:</p>
  
  <blockquote>
    <p><strong>our global Angular CLI version (9.1.4) is greater than your local</strong>
    version (1.0.0). The local Angular CLI version is used.</p>
  </blockquote>
  
  <p>I googled and figured out I should update angular cli with the following command.</p>
  
  <blockquote>
    <p><strong>npm install --save -dev @angular/cli@latest</strong></p>
  </blockquote>
  
  <p>After that I am getting the following error when trying to build the project:</p>
  
  <blockquote>
    <p><strong>The build command requires to be run in an Angular project, but a project definition could not be found</strong></p>
  </blockquote>
  
  <p>Any help will be much appreciated.</p>