title: How do you fix npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead
body: <h2>How do you fix this problem?</h2>
  <p><a href="https://i.stack.imgur.com/0D9Qv.png" rel="noreferrer">Nodejs npm and npx problem</a></p>
  <p>When i trying to install or check anything on command prompt. Node js through</p>
  <blockquote>
  <p>npm WARN config global <code>--global</code>, <code>--local</code> are deprecated. Use
  <code>--location=global</code> instead</p>
  </blockquote>
  <p>this error. For instance what can i do. I have little knowledge about node js if any one have any solution please help me.</p>