title: npm --version is giving errormodule.js:538 throw err; ^ Error: Cannot find module
body: <p>After installation of Node.js,i checked the version of node by typing in cmd:</p>
  
  <blockquote>
    <p>node --version,</p>
  </blockquote>
  
  <p>it showed me the version,but when I type  </p>
  
  <blockquote>
    <p>npm --version </p>
  </blockquote>
  
  <p>it gives me an error</p>
  
  <pre><code>module.js:538 
       throw err;
       ^
  Error: Cannot find module
  </code></pre>