When I try to run ng serve command in my project it produce the below error.
ERROR in ngcc is already running at process with id xxxx
ngcc (which stands for Angular compatibility compiler) is designed to process code coming from NPM and produce the equivalent Ivy version, as if the code was compiled with ngtsc .
Try deleting your ngcc_lock_file
in the path:
node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
Or for Angular 9, the lock file to delete is:
node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__
I had the same issue and I and deleted that file and it started working for me.
I hope it helps!
rm node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With