title: I am getting following error when I try to create a new angular project
body: <p>Could someone please help me with this error? I am trying to create a new angular app using <code>ng new app-name</code> but I get the following error, I am new to angular and not sure of the reason for this error.</p>
  
  <pre><code>CREATE angular-app/e2e/src/app.e2e-spec.ts (307 bytes)
  CREATE angular-app/e2e/src/app.po.ts (208 bytes)
  events.js:167
        throw er; // Unhandled 'error' event
        ^
  Error: spawn C:\Program Files\Java\jdk1.8.0_144\jre ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:231:19)
      at onErrorNT (internal/child_process.js:406:16)
      at process._tickCallback (internal/process/next_tick.js:63:19)
      at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
      at startup (internal/bootstrap/node.js:266:19)
      at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
  Emitted 'error' event at:
      at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
      at onErrorNT (internal/child_process.js:406:16)
      [... lines matching original stack trace ...]
      at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
  </code></pre>