title: Ionic 4 - Getting [ERROR] ng has unexpectedly closed (exit code 1) when I run "ionic server"
body: <p>I am struggling in this error when I try the first run on an <strong>Ionic4</strong> project.</p>
  
  <blockquote>
    <p>ng run app:serve --host=0.0.0.0 --port=8100</p>
    
    <p>[ERROR] ng has unexpectedly closed (exit code 1).</p>
  
  <pre><code>  The Ionic CLI will exit. Please check any output above for error details.
  </code></pre>
  </blockquote>
  
  <p>I'm using Linux Elementary OS (a nice distro that came from Ubuntu).</p>
  
  <p>I tried to run a <strong>ionic3</strong> project and it ran successfully.</p>
  
  <p>When I run ionic serve --verbose I get this message</p>
  
  <p><a href="https://i.stack.imgur.com/b8BE7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b8BE7.png" alt="enter image description here"></a></p>
  
  <p>I already tried many things, "npm cache clean", reinstall node, reinstall ionic, start/stop nodejs process. But without any success.
  As I am not finding anyone with the exactly same problem as mine I am asking you guys.</p>