2012-11-27 3 views
7

Ich habe die neueste Node.js (0.8.15) auf Ubuntu 11.10 x64 installiert, indem ich aus Quellen kompiliert habe.Node.js 0.8.15 npm Fehler: Modul 'Proto-Liste' nicht gefunden

Alles war in Ordnung und Node.js funktionierte perfekt, aber Npm will nicht richtig funktionieren. Es gibt die folgende Fehlermeldung für jeden npm

 
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) 

Durch die Art und Weise befiehlt, ich meine Node.js regelmäßig und meine frühere Version zu aktualisieren war Node.js 0.8.12 wo npm richtig gearbeitet. Weiß jemand, wie man diese Situation löst? Oder was habe ich falsch gemacht?

Vielen Dank im Voraus

Antwort

1

es sieht aus wie ein Modul erforderlich sein soll, die nicht installiert ist! ??

Versuch

npm install proto-list 
+0

Vielen Dank für Beratung, aber, wie ich sprach, npm erzeugt Fehler auf alle Befehle einschließlich installieren :( – user1856533

+1

Wow, ich habe die Lösung gefunden haben curl https:. // npmjs .org/install.sh> npm_install.sh sudo ./npm_install.sh Danach funktioniert npm ordnungsgemäß – user1856533