IONIC : A utility CLI has unexpectedly closed

前端 未结 10 2179
半阙折子戏
半阙折子戏 2021-02-04 04:19

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         


        
相关标签:
10条回答
  • 2021-02-04 04:29

    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.

    0 讨论(0)
  • 2021-02-04 04:31

    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
    
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-04 04:39

    You must kill the NodeJs service I believe it's a bug

    0 讨论(0)
  • 2021-02-04 04:40

    Try running:

    npm install @ionic/lab
    
    0 讨论(0)
  • 2021-02-04 04:40

    Maybe there is an issue in your hosts file. Make sure your ::1 should enable or not commented.

    Example:

    0 讨论(0)
提交回复
热议问题