I got this error when i run ionic serve The Ionic CLI will exit. Please check any output above for error details.
my ionic info
$ionic info
Ionic:
i
Error: Lock found, but no process with PID 43470 seems to be running. [ng] (If you are sure no ngcc process is running then you should delete the lock-file at yourproject/node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file.)
rm yourproject/node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file
et voila.
I don't know why but using sudo was the only way to solve this on my ubuntu machine! I just needed to run the command using sudo:
sudo ionic serve
Run the below command, being in root directory of Ionic project:
npm install @ionic/app-scripts@latest --save-dev
Then you can try Ionic serve or Ionic s.
You must kill the NodeJs service I believe it's a bug
Try running:
npm install @ionic/lab
Maybe there is an issue in your hosts
file. Make sure your ::1
should enable or not commented.
Example: