title: I did npm i -g npm@5.5.1 after that I am not able see npm -v , throwing error
body: <pre><code> npm -v
  </code></pre>
  <p>node:internal/modules/cjs/loader:936
  throw err;
  ^</p>
  <p>Error: Cannot find module 'semver'
  Require stack:</p>
  <p>Before this npm -v showing 8. some version
  but now it's throwing error
  how can i resolve this or undo?</p>