This example explains how to solve the problem cannot find module ‘@angular/compiler-cli’ ng serve in Angular.
Steps to install module ‘@angular/compiler-cli’
remove node_modules folder
then use the following commands
$ npm install --save-dev @angular/cli@latest $ npm install
You need to reinstall the node_modules to solve the above problem. this problem occurs because of incompatibility with dependencies.