Ionic 4: cannot find module '@angular/compiler


#1

Hi! i’m trying to run my app whenever if i try ionic serve, this error appears:

[ng] Cannot find module ‘@angular/compiler’
[ng] Error: Cannot find module ‘@angular/compiler’
[ng] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
[ng] at Function.Module._load (internal/modules/cjs/loader.js:506:25)
[ng] at Module.require (internal/modules/cjs/loader.js:636:17)
[ng] at require (internal/modules/cjs/helpers.js:20:18)
[ng] at C:\Users\ABASTON\node_modules@angular\compiler-cli\index.js:20:22
[ng] at C:\Users\ABASTON\node_modules@angular\compiler-cli\index.js:3:17
[ng] at Object. (C:\Users\ABASTON\node_modules@angular\compiler-cli\index.js:9:3)
[ng] at Module._compile (internal/modules/cjs/loader.js:688:30)
[ng] at Object.Module._extensions…js (internal/modules/cjs/loader.js:699:10)
[ng] at Module.load (internal/modules/cjs/loader.js:598:32)
[ng] at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
[ng] at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[ng] at Module.require (internal/modules/cjs/loader.js:636:17)
[ng] at require (internal/modules/cjs/helpers.js:20:18)
[ng] at Object. (C:\Users\ABASTON\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:12:24)
[ng] at Module._compile (internal/modules/cjs/loader.js:688:30)
[ERROR] ng has unexpectedly closed (exit code 1).
The Ionic CLI will exit. Please check any output above for error details.
C:\cours_dev\ionic\myapp>