title: Ionic4 / Angular - Cannot find module '@angular/compiler-cli/ngcc' on Ionic serve
body: <p>i got stuck on an <strong>issue</strong> after installing a <code>cordova plugin</code> and using "<code>npm audit fix</code>".</p>
  
  <p>Now if im trying to <code>serve my app</code>, i get this message:</p>
  
  <blockquote>
    <p>[ng] An unhandled exception occurred: Cannot find module
    '@angular/compiler-cli/ngcc' [ng] See
    "C:\Users\Jorden\AppData\Local\Temp\ng-1VnycD\angular-errors.log" for
    further details.</p>
    
    <p>[ERROR] ng has unexpectedly closed (exit code 127).</p>
    
    <p>The Ionic CLI will exit. Please check any output above for error
    details.</p>
  </blockquote>
  
  <p>I tried many solutions i found, but none of these worked for me..</p>
  
  <p>Here is the <code>angular-errors.log</code>:</p>
  
  <blockquote>
    <p>[error] Error: Cannot find module '@angular/compiler-cli/ngcc'<br>
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)<br>
        at Function.Module._load (internal/modules/cjs/loader.js:508:25)<br>
        at Module.require (internal/modules/cjs/loader.js:637:17)<br>
        at require (internal/modules/cjs/helpers.js:22:18)<br>
        at Object. (C:\Users\Jorden\Desktop\Ionic\myApp\node_modules@ngtools\webpack<br>
    \src\ngcc_processor.js:10:16)<br>
        at Module._compile (internal/modules/cjs/loader.js:701:30)<br>
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)<br>
        at Module.load (internal/modules/cjs/loader.js:600:32)<br>
        at tryModuleLoad (internal/modules/cjs/loader.js:539:12)<br>
        at Function.Module._load (internal/modules/cjs/loader.js:531:3)<br>
        at Module.require (internal/modules/cjs/loader.js:637:17)<br>
        at require (internal/modules/cjs/helpers.js:22:18)<br>
        at Object. (C:\Users\Jorden\Desktop\Ionic\myApp\node_modules@ngtools\webpack  \src\angular_compiler_plugin.js:23:26)<br>
        at Module._compile (internal/modules/cjs/loader.js:701:30)<br>
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)<br>
        at Module.load (internal/modules/cjs/loader.js:600:32)  </p>
  </blockquote>
  
  <p>And my <strong>package.json</strong>:</p>
  
  <blockquote>
    <p>{   "name": "myApp",   "version": "0.0.1",   "author": "Ionic<br>
    Framework",   "homepage": "<a href="https://ionicframework.com/" rel="nofollow noreferrer">https://ionicframework.com/</a>",   "scripts":<br>
    {<br>
        "ng": "ng",<br>
        "start": "ng serve",<br>
        "build": "ng build",<br>
        "test": "ng test",<br>
        "lint": "ng lint",<br>
        "e2e": "ng e2e"   },   "private": true,   "dependencies": {<br>
        "@angular/common": "^7.2.2",<br>
        "@angular/core": "^7.2.2",<br>
        "@angular/forms": "^7.2.2",<br>
        "@angular/http": "^7.2.2",<br>
        "@angular/platform-browser": "^7.2.2",<br>
        "@angular/platform-browser-dynamic": "^7.2.2",<br>
        "@angular/router": "^7.2.2",<br>
        "@ionic-native/core": "^5.0.0",<br>
        "@ionic-native/in-app-browser": "^5.18.0",<br>
        "@ionic-native/social-sharing": "^5.14.0",<br>
        "@ionic-native/splash-screen": "^5.14.0",<br>
        "@ionic-native/status-bar": "^5.0.0",<br>
        "@ionic/angular": "^4.1.0",<br>
        "@ionic/storage": "^2.2.0",<br>
        "cordova-android": "^8.1.0",<br>
        "cordova-browser": "6.0.0",<br>
        "cordova-ios": "5.1.1",<br>
        "cordova-plugin-inappbrowser": "^3.1.0",<br>
        "cordova-plugin-splashscreen": "^5.0.2",<br>
        "cordova-plugin-x-socialsharing": "^5.6.0",<br>
        "cordova-sqlite-storage": "^3.3.0",<br>
        "core-js": "^2.5.4",<br>
        "es6-promise-plugin": "^4.2.2",<br>
        "rxjs": "~6.5.1",<br>
        "tslib": "^1.9.0",<br>
        "woocommerce-api": "^1.4.2",<br>
        "zone.js": "~0.8.29"   },   "devDependencies": {<br>
        "@angular-devkit/architect": "^0.803.21",<br>
        "@angular-devkit/build-angular": "^0.803.21",<br>
        "@angular-devkit/core": "^7.3.9",<br>
        "@angular-devkit/schematics": "^8.3.21",<br>
        "@angular/cli": "^8.3.21",<br>
        "@angular/compiler": "~7.2.2",<br>
        "@angular/compiler-cli": "~7.2.2",<br>
        "@angular/language-service": "~7.2.2",<br>
        "@ionic/angular-toolkit": "~1.5.1",<br>
        "@types/jasmine": "~2.8.8",<br>
        "@types/jasminewd2": "~2.0.3",<br>
        "@types/node": "^12.6.8",<br>
        "codelyzer": "~4.5.0",<br>
        "cordova-plugin-device": "^2.0.2",<br>
        "cordova-plugin-ionic-keyboard": "^2.2.0",<br>
        "cordova-plugin-ionic-webview": "^4.1.3",<br>
        "cordova-plugin-statusbar": "^2.4.2",<br>
        "cordova-plugin-whitelist": "^1.3.3",<br>
        "jasmine-core": "~2.99.1",<br>
        "jasmine-spec-reporter": "~4.2.1",<br>
        "karma": "~4.1.0",<br>
        "karma-chrome-launcher": "~2.2.0",<br>
        "karma-coverage-istanbul-reporter": "~2.0.1",<br>
        "karma-jasmine": "~1.1.2",<br>
        "karma-jasmine-html-reporter": "^0.2.2",<br>
        "protractor": "~5.4.0",<br>
        "ts-node": "~8.3.0",<br>
        "tslint": "~5.17.0",<br>
        "typescript": "~3.1.6"   },   "description": "An Ionic project",   "cordova": {<br>
        "plugins": {<br>
          "cordova-plugin-splashscreen": {},<br>
          "cordova-sqlite-storage": {},<br>
          "cordova-plugin-x-socialsharing": {},<br>
          "cordova-plugin-whitelist": {},<br>
          "cordova-plugin-statusbar": {},<br>
          "cordova-plugin-device": {},<br>
          "cordova-plugin-ionic-webview": {},<br>
          "cordova-plugin-ionic-keyboard": {},<br>
          "cordova-plugin-inappbrowser": {}<br>
        },<br>
        "platforms": [<br>
          "ios",<br>
          "android",<br>
          "browser"<br>
        ]   } }  </p>
  </blockquote>
  
  <p>Hope you guys can help me :)</p>