title: ng serve command not working angular 5
body: <p>If I run ng serve, getting this error</p>
  
  <blockquote>
    <p>ng : The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
        if a path was included, verify that the path is correct and try again.
        At line:1 char:1
        + ng serve
        + ~~
            + CategoryInfo          : ObjectNotFound: (ng:String) [], CommandNotFoundException
            + FullyQualifiedErrorId : CommandNotFoundException</p>
  </blockquote>
  
  <p>I have tried npm run ng serve, getting this error   </p>
  
  <blockquote>
    <p>Local workspace file ('angular.json') could not be found.
        Error: Local workspace file ('angular.json') could not be found.
            at WorkspaceLoader._getProjectWorkspaceFilePath (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\workspace-loader.js:3
        7:19)
            at WorkspaceLoader.loadWorkspace (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\workspace-loader.js:24:21)
            at ServeCommand._loadWorkspaceAndArchitect (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:180:3
        2)
            at ServeCommand. (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:47:25)
            at Generator.next ()
            at C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:7:71
            at new Promise ()
            at __awaiter (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:3:12)
            at ServeCommand.initialize (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js:46:16)
            at Object. (C:\Users\rohit\AppData\Roaming\npm\node_modules\@angular\cli\models\command-runner.js:87:23)
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! npv2@0.0.0 ng: <code>ng "serve"</code>
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the npv2@0.0.0 ng script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
  </blockquote>
  
  <pre><code>npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\rohit\AppData\Roaming\npm-cache\_logs\2018-06-12T06_59_12_392Z-debug.log
  </code></pre>
  
  <p>I have uninstall @angular/cli and cleared the cached, again installed but facing same issue.</p>
  
  <p>Kindly suggest.</p>