i encountered a problem after installing a cordova plugin
and running "npm audit fix
".
When attempting to serve my app
, an error message pops up:
[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 more information.
[ERROR] ng has unexpectedly closed (exit code 127).
The Ionic CLI will exit. Please check any output above for further details.
I've tried multiple solutions I came across, but none of them have resolved the issue..
This is the content of angular-errors.log
:
[error] Error: Cannot find module '@angular/compiler-cli/ngcc'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Users\Jorden\Desktop\Ionic\myApp\node_modules@ngtools\webpack
\src\ngcc_processor.js:10:16)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Users\Jorden\Desktop\Ionic\myApp\node_modules@ngtools\webpack \src\angular_compiler_plugin.js:23:26)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
Here's the content of my package.json:
{ "name": "myApp", "version": "0.0.1", "author": "Ionic
Framework", "homepage": "https://ionicframework.com/", "scripts":
{
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e" }, "private": true, "dependencies": {
// List of dependencies here...
"typescript": "~3.1.6" }, "description": "An Ionic project", "cordova": {
// Cordova configurations and plugins list... } }
Any assistance or insights would be greatly appreciated :)