ERROR in ngcc is already running at process with id xxxx

Viewed 54819

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

4 Answers

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__ 

Working Solution

  1. Delete all node modules
  2. Close any working terminal or you can shut down your PC if you cant make sure that you've closed all working terminals
  3. run npm i to setup your modules
  4. run ng s

It's working with me well !

The problem is most-likely a unique case.

  1. Make sure you don't run other ng serve in parallel.
  2. Stop current processes running and retry.
  3. Reload your computer and try again.

If that does not help

Post a full log, so it is possible to troubleshoot your problem.

Related