title: npm Error “ Cannot find module 'npmlog' ”
body: <p>I am running CentOS 6 and after logging in, I encounter the following error</p>
  
  <pre><code>  module.js:340
      throw err;
            ^
  Error: Cannot find module 'npmlog'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at /home/dspace/.nvm/v0.10.31/bin/npm:19:11
      at Object.&lt;anonymous&gt; (/home/dspace/.nvm/v0.10.31/bin/npm:87:3)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
  nvm is not compatible with the npm config "prefix" option: currently set to ""
  Run `npm config delete prefix` or `nvm use --delete-prefix v0.10.31 --silent` to unset it.
  </code></pre>
  
  <p>I've discovered that it is a version bug and can be resolved either by upgrading the npm version or by deleting the node modules like so;</p>
  
  <pre><code>rm -rf node_modules
  </code></pre>
  
  <p>Then reinstalling them;</p>
  
  <pre><code>npm install
  </code></pre>
  
  <p>After removing the modules, npm install failed to run because of missing dependancies i.e. the modules. Now the command shows no response at all.</p>
  
  <p>My node version is v0.10.48 </p>