title: Error - This command can only be run inside of a CLI project
body: <p>I am working on an ionic 3 project with the name portal. I need to create a service called user but i keep getting the above error.
  These are the steps i followed:</p>
  
  <pre><code>cd portal 
  npm install -g angular-cli@latest
  npm install
  ng g service user
  </code></pre>
  
  <p>Then i get the error <em>This command can only be run inside of a CLI project</em>. 
  I noticed that angular-cli is not getting added to my dependency list in package.json nor do i have the cli directory under @angular in the node modules directory.
  I tried the install angular-cli twice but the error persists. Have been stuck with it for a long time any help is really appreciated.</p>