I'm trying to build and serve my project. It was working properly, I updated it from git and then suddenly when I serve it, there is an Error saying "Another process, with id 29800, is currently running ngcc." I retried "npm i", also restarted the IDE and even pc, but it still says the same.
The Laptop Crashed and I got this problem after restart. Removing the below file from ionic project solved the problem.
node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
This happens when ngcc (Angular compatibility compiler) is not finished doing what it does, you must have enabled ivy in your Angular project. read here for more info about ivy.
npm install again, to see if it fixes your problem.ngcc manually.node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__node_modules directory and try npm i again.Just run
ionic repair
And select Yes
Try deleting your ngcc_lock_file in the path:
node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
It's work for me.
just remove the node_modulesthen run npm i
I deleted the file node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file_ from the node_modules folder and its working fine.
Fix this all in one easy command:
run npm ci
this will delete node_modules and npm install
deleting lock file in nodes module at the following location will fix this errors
*C:\Users\OneDrive\Desktop\app\node_modules\@angular\compiler-cli\ngcc\src\locking*
delete the lock-file javascript file over there.
if it still shows the same error then delete the entire lock-files folder ,restart command prompt and then it will run
Had the same issue running angular with a docker file, and like suggested here I deleted ngcc_lock_file BEFORE running npm install
Also if above solutions, dosen´t work it could be that the pipeline has too little space to work with side processes. What you could do is go to angular.json and search for this object:
"budgets": [{"type": "initial","maximumWarning": "4mb","maximumError": "5mb"}]
and raise the limits on maximumError for example.
More about budgets here: angular.io/guide
I deleted the file node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file_ from the node_modules folder and its working fine. angular v10
simply run rm -rf node_modules && npm install