title: NPM gives this error while updating every package locally, but it allows to update package globally
body: <p><a href="https://i.stack.imgur.com/k6pkY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k6pkY.png" alt="enter image description here" /></a></p>
  <p>While updating packages <strong>locally</strong> to their latest version, npm gives this error.
  But it allows to update them globally, why?
  and How should solve this ERESOLVE error to update them locally?</p>