title: ng : The term 'ng' is not recognized as the name of a cmdlet, function Visual Studio Code Terminal
body: <p>In VS Code when I am running command <code>ng build</code>, getting error</p>
  <pre><code>PS D:\Dashboard\Test1&gt; ng build
  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 build
  + ~~
      + CategoryInfo          : ObjectNotFound: (ng:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  <p>I have added these environment variable in <code>Path</code></p>
  <pre><code>%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
  C:\Users\Avind\AppData\Local\Programs\Microsoft VS Code\bin;
  C:\Users\Avind\AppData\Roaming\npm;
  </code></pre>
  <p>How can I get rid of this issue?</p>
  <p>Note: I have <code>node.js</code> at <code>C:\Program Files\nodejs</code>. From command prompt <code>ng new project</code> not working but working from <code>node.js</code> command.</p>
  <p>Edit 1: After executing <code>npm install -g @angular/cli@latest</code> from VS Code terminal getting below msg and <code>ng</code> cmd not working</p>
  <pre><code>PS D:\Path\Test1&gt; npm install -g @angular/cli@latest
  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
  C:\Users\Avind\AppData\Roaming\npm\ng -&gt; C:\Users\Avind\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
  
  &gt; @angular/cli@9.1.9 postinstall C:\Users\AR20095474\AppData\Roaming\npm\node_modules\@angular\cli
  &gt; node ./bin/postinstall/script.js
  
  + @angular/cli@9.1.9
  updated 1 package in 53.477s
  </code></pre>