When I run ng serve -o command in the terminal produced the below command
Error: ngcc is already running at process with id 14828.
When I run ng serve -o command in the terminal produced the below command
Error: ngcc is already running at process with id 14828.
Stop the server and run rm node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
.
I have encountered this error message several times. Just follow these steps and I am sure, you will be able to do ng serve without any issues.
Stop the server
Delete the lockfile at project directory path/node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file.)
Then run ng serve -o
Just delete node_modules and reinstall node modules or you can remove this file node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
This can be caused by Angular Language Service (ALS) in VSCode. Try disabling ALS for a bit or kill VSCode completely and then try to rebuild your project.