The "@angular/compiler-cli" package was not properly installed. code example
Example 1: The "@angular/compiler-cli" package was not properly installed.
npm install -g @angular/cli@latest
npm install
ng serve
Example 2: The "@angular/compiler-cli" package was not properly installed.
rm -rf node_modules dist
npm uninstall -g @angular/cli
npm cache clean