IONIC : A utility CLI has unexpectedly closed

前端 未结 10 2188
半阙折子戏
半阙折子戏 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:43

    I had a similar issue. I tried several different solutions, and for some reason different ones worked on different machines. Because I'm an illogical masochist, I attempted to fix this issue in the same project on 3 different laptops instead of sending the new fixed version to the other laptops.

    The best answer I came up with is to:

    • Delete node_modules
    • copy node_modules from a different project (I used an earlier version of my app)
    • run npm i to install any missing modules

    I think this approach should work for almost all instances.

提交回复
热议问题