I downloaded the latest version of Node.js (0.8.8) and everything works fine and dandy, but NPM packed with Node.js installation now fails. It worked when I had an outdated version of Node.js (0.5.x), and I could type commands like
npm --version
and it will return the current version of NPM. However, when I execute any command (even higher), I get this error
$ npm -v /usr/lib/node_modules/npm/lib/utils/config-defs.js:5 , stdio = process.binding("stdio") ^ Error: No such module at Object.<anonymous> (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) 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) at require (module.js:378:17) at Object.<anonymous> (/usr/lib/node_modules/npm/lib/utils/ini.js:43:18) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10)
I am using NPM version 1.1.59
Note. I tried updating NPM with
$ curl -L curl http://npmjs.org/install.sh | sudo sh
But that didn't work either.
source share