'Getting error - Cannot find module - @anguar\compiler-cli\bundles\ngcc\main-ngcc.js

I herewith attach the error that I am getting - enter image description here

I tried the following things to resolve this error –

1

npm uninstall -g @angular/cli

npm install -g @angular/cli

2

Npm uninstall @angular/compiler-cli

Npm install @angular/compiler-cli

[3]

Npm uninstall

Npm install –force / npm install –legacy-peer-deps

[4]

npm cache clean --force

[4] My environment file includes –

As attachedenter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source