title: Local workspace file ('angular.json') could not be found. But same code works in another computer
body: <p>I am getting following error in one computer, but it works in another computer for the same source code</p>
  
  <blockquote>
    <p>Local workspace file ('angular.json') could not be found. Error: Local
    workspace file ('angular.json') could not be found</p>
  </blockquote>
  
  <p><strong><em>Not working computer</em></strong></p>
  
  <p><a href="https://i.stack.imgur.com/fWRe9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fWRe9.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Working computer</em></strong> </p>
  
  <p><a href="https://i.stack.imgur.com/R1Lcc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R1Lcc.png" alt="enter image description here"></a></p>
  
  <p>I tried following commands mentioned in this <a href="https://stackoverflow.com/questions/49810580/error-local-workspace-file-angular-json-could-not-be-found">stackoverflow link</a>, but no luck </p>
  
  <blockquote>
    <p>ng update @angular/cli --migrate-only --from=1.7.4 This removed
    .angular-cli.json and created angular.json.</p>
    
    <p>If this leads to your project using 1.7.4, install v6 locally:</p>
    
    <p>npm install --save-dev @angular/cli@v6.0.0-rc.4</p>
  </blockquote>
  
  <p><strong><em>Not working computer ng version</em></strong> </p>
  
  <p>PS D:\Work\Source> ng -v
  Your global Angular CLI version (6.0.8) is greater than your local
  version (6.0.0-rc.4). The local Angular CLI version is used.</p>
  
  <p>To disable this warning use "ng config -g cli.warnings.versionMismatch false".</p>
  
  <pre><code> _                      _                 ____ _     ___
  / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  </code></pre>
  
  <p>/ △ \ | '_ \ / _<code>| | | | |/ _</code> | '<strong>|   | |   | |    | |
    / <em></strong> \| | | | (</em>| | |<em>| | | (</em>| | |      | |<strong><em>| |</em></strong> | |
   /<em>/   __| |</em>|__, |__,<em>|</em>|__,<em>|</em>|       ____|_____|<strong><em>|
                  |</em></strong>/</p>
  
  <pre><code>Angular CLI: 6.0.0-rc.4
  Node: 8.11.3
  OS: win32 x64
  Angular: 5.2.10
  ... animations, common, compiler, compiler-cli, core, forms
  ... http, language-service, platform-browser
  ... platform-browser-dynamic, router
  
  Package                      Version
  ------------------------------------------------------
  @angular-devkit/architect    0.5.6
  @angular-devkit/core         0.5.6 (cli-only)
  @angular-devkit/schematics   0.5.6 (cli-only)
  @angular/cli                 6.0.0-rc.4
  @ngtools/json-schema         1.2.0
  @schematics/angular          0.5.6 (cli-only)
  @schematics/update           0.5.6
  rxjs                         5.5.10
  typescript                   2.5.3
  </code></pre>
  
  <p><strong><em>Working computer ng -version</em></strong></p>
  
  <pre><code>PS V:\Jaison\Incomming\HISUI_Grid\HISUI\HISUI_04July2018\HISUI\src&gt; ng -v
  Your global Angular CLI version (6.0.8) is greater than your local
  version (1.7.4). The local Angular CLI version is used.
  
  To disable this warning use "ng config -g cli.warnings.versionMismatch false".
  
      _                      _                 ____ _     ___
     / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
    / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
   / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
  /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                 |___/
  
  Angular CLI: 1.7.4
  Node: 8.9.3
  OS: win32 x64
  Angular: 5.2.10
  ... animations, common, compiler, compiler-cli, core, forms
  ... http, language-service, platform-browser
  ... platform-browser-dynamic, router
  
  @angular/cli: 1.7.4
  @angular-devkit/build-optimizer: 0.3.2
  @angular-devkit/core: 0.3.2
  @angular-devkit/schematics: 0.3.2
  @ngtools/json-schema: 1.2.0
  @ngtools/webpack: 1.10.2
  @schematics/angular: 0.3.2
  @schematics/package-update: 0.3.2
  typescript: 2.5.3
  webpack: 3.11.0
  </code></pre>