Error: cannot find module ‘@angular/compiler-cli’

In this article let’s discuss about Error: cannot find module ‘@angular/compiler-cli’. Let’s go through the following methods without any delay.

Method 1:

npm i --save-dev @angular/compiler-cli

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

rm -rf node_modules dist
npm uninstall -g @angular/cli
npm cache clean

Hope the above solution works.

Realted Posts : How to uninstall libreoffice ubuntu?