title: Angular-Cli 'ng g c my-new-component' Error: Could not find (undefined) and Could not find (undefined)
body: <p><strong>Problem:</strong></p>
  
  <p>In my angular 5+ app project, in one of my subfolder, after I typed <code>ng g c my-component</code> commend, Nothing generated ,instead, it popup some unknown errors, anyone know what is going on here? I've reinstalled the npm/angular@cli for many times.     </p>
  
  <pre><code>jocs@Jocs ~/r/s/a/pages (devReno)&gt; ng g c my-new-component
  Error: Could not find (undefined)
  Could not find (undefined)
  jocs@Jocs ~/r/s/a/pages (devReno) [1]&gt; ng generate component my-new-component
  Error: Could not find (undefined)
  Could not find (undefined)
  jocs@Jocs ~/r/s/a/pages (devReno) [1]&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/SMN26.png" alt="Terminal Screen Shot (image link)">
  <br>
  <strong>Dev Environments:</strong></p>
  
  <p>OS: darwin x64(Mac OS: 10.13.4)</p>
  
  <p>Angular CLI: 1.7.4</p>
  
  <p>Node: 9.11.1</p>
  
  <p>Angular: 5.2.9</p>