Nachdem ich wechseln von einer node.js Version auf eine andere mit n Modul - https://github.com/visionmedia/n/, mein npm gebrochen ...n Modul bricht NPM
MacBook-Pro-Dmitri:~ dmitri$ npm --version
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:362:17)
at require (module.js:378:17)
at /usr/local/bin/npm:19:11
at Object.<anonymous> (/usr/local/bin/npm:87:3)
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)
dann bin ich der Installation von NPM wieder es wurde hier adviced - https://github.com/visionmedia/n/issues/101
curl https://npmjs.org/install.sh | sh
npm ..
bu zu arbeiten beginnt t dann mache ich einen anderen Schalter für Knoten-Version:
und npm ist jetzt wieder mit dem gleichen Fehler gebrochen.
es ist sehr nervig .. muss ich npm manuell nach jeder Version wechseln ?!
Besuchen Sie http://stackoverflow.com/questions/9755841/how-can-i-change-the-version-of-npm-using-nvm Dies kann Ihnen helfen –
Werfen Sie auch einen Blick auf folgende Links: http : //www.backdrifter.com/2011/02/18/using-nvm-and-npm-to-manage-node-js/ http://stackoverflow.com/questions/9133784/node-version-manager- nvm-npm-installing-modules-to-common-folder –
Was ist Betriebssystem Windows oder Ubunto? Es gibt Windows-Installer –