title: I get this error:Cannot find module '@angular-devkit/build-angular/package.json when I try run my app with ng serve from Linux
body: <p>hello guys I have this next error when I try run my App from the terminal(linux), when I run this command:</p>
  <blockquote>
  <p>ng serve</p>
  </blockquote>
  <p>and I get this error in my terminal:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>AppBlog/blog# ng serve
  An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
  Require stack:
  - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
  - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js
  - /usr/local/lib/node_modules/@angular/cli/models/architect-command.js
  - /usr/local/lib/node_modules/@angular/cli/commands/serve-impl.js
  - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
  - /usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
  - /usr/local/lib/node_modules/@angular/cli/utilities/json-schema.js
  - /usr/local/lib/node_modules/@angular/cli/models/command-runner.js
  - /usr/local/lib/node_modules/@angular/cli/lib/cli/index.js
  - /usr/local/lib/node_modules/@angular/cli/lib/init.js
  - /usr/local/lib/node_modules/@angular/cli/bin/ng
  See "/tmp/ng-ev5aDi/angular-errors.log" for further details.</code></pre>
  </div>
  </div>
  </p>
  <p>then  i checked out this part :</p>
  <p><strong>An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'</strong></p>
  <p>this part say that cannot find moduled called: &quot;'@angular-devkit/build-angular/package.json'&quot;</p>
  <p>then I cheked out this file in my project but I have this, look:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  "devDependencies": {
      "@angular-devkit/build-angular": "~0.900.3",
      "@angular/cli": "~9.0.3",
      "@angular/compiler-cli": "~9.0.2",
      "@angular/language-service": "~9.0.2",
      "@types/node": "^12.11.1",
      "@types/jasmine": "~3.5.0",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "^5.1.2",
      "jasmine-core": "~3.5.0",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~4.3.0",
      "karma-chrome-launcher": "~3.1.0",
      "karma-coverage-istanbul-reporter": "~2.1.0",
      "karma-jasmine": "~2.0.1",
      "karma-jasmine-html-reporter": "^1.4.2",
      "protractor": "~5.4.3",
      "ts-node": "~8.3.0",
      "tslint": "~5.18.0",
      "typescript": "~3.7.5"
    }</code></pre>
  </div>
  </div>
  </p>
  <p>then i went to google and search and I found this like from <a href="https://stackoverflow.com/questions/59136899/an-unhandled-exception-occurred-could-not-find-module-angular-devkit-build-an">stackoverflow</a>  and I tried their solution but it does not work and I run the command ng serve again.</p>
  <p>what I did wrong?</p>
  <p>before nothing , before I added 3 components: login,register and home in my folder : <strong>src/app</strong>   with this command : <strong>ng generate component login</strong> and I import my component in my file : app.component.ts this way:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* THIS IS JUST A EXAMPLE VERY SIMILAR TO MY CODE REAL,  I just import one component*/
  
  import { Component } from '@angular/core';
  import { loginComponent } from './login.component';
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css'],
    declarations: [loginComponent], //import my login
  })
  export class AppComponent {
    title = 'blog';
  }</code></pre>
  </div>
  </div>
  </p>
  <p>maybe is this part but I dont find a solution, any expert in angular could tell me what I did wrong?</p>
  <p><strong>UPDATE</strong></p>
  <p>I am continue searching in google and I found this:
  <a href="https://github.com/angular/angular-cli/issues/10745" rel="noreferrer">github/Angular</a> they are saying that I would install npm/angular-cli/node again and I run this command for update my angular cli:</p>
  <blockquote>
  <h3>uninstalled ang-cli</h3>
  <p>npm uninstall @angular/cli</p>
  </blockquote>
  <blockquote>
  <h3>installed the latest</h3>
  <p>npm install -g @angular/cli@latest</p>
  </blockquote>
  <p>but first I update my npm with this command:</p>
  <blockquote>
  <h3>installed the latest npm</h3>
  <p>npm install -g npm@latest</p>
  </blockquote>
  <p>but it still does not work.</p>