Node.js 0.8.15 npm Error: cannot find module 'proto-list'

I installed the latest version of Node.js (0.8.15) on Ubuntu 11.10 x64 by compiling from sources.

  ./configure --dest-cpu = x64
  make
  sudo make install

Everything was fine and Node.js worked fine, but npm did not want to work properly. It gives the following error for any npm commands

  Error: Cannot find module 'proto-list'
     at Function.Module._resolveFilename (module.js: 338: 15)
     at Function.Module._load (module.js: 280: 25)
     at Module.require (module.js: 362: 17)
     at require (module.js: 378: 17)
     at Object.  (/usr/local/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js:2:17)
     at Module._compile (module.js: 449: 26)
     at Object.Module._extensions..js (module.js: 467: 10)
     at Module.load (module.js: 356: 32)
     at Function.Module._load (module.js: 312: 12)
     at Module.require (module.js: 362: 17)

By the way, I periodically update my Node.js, and my previous version was Node.js 0.8.12, where npm worked correctly. Does anyone know how to resolve this situation? Or what did I do wrong?

Thank you in advance

+7
source share
1 answer

It looks like you want to install a module that is not installed! ??

try

npm install proto-list 
+1
source

All Articles