title: how to fix this problem? npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead
body: <p>Please some body can help me with this error?</p>
  <p>Every thing was good, when suddenly I write <code>npm index</code> and VS Code shows this error:</p>
  <pre class="lang-none prettyprint-override"><code>npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.        
  Debugger attached.
  Unknown command: &quot;index&quot;
  
  To see a list of supported npm commands, run:
    npm help
  </code></pre>
  <p><a href="https://i.stack.imgur.com/yKdZG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKdZG.jpg" alt="VS Code terminal showing an NPM error" /></a></p>
  <p>What can I do to fix this?</p>