I am trying to install npm, Everything I try, I get this message:
sudo make install
scripts/doc-build.sh doc/api/bin.md man/man3/bin.3
make: Entering directory `/home/ubuntu/local/node/npm'
node cli.js install https://github.com/isaacs/ronnjs/tarball/master
throw e; // process.nextTick error, or 'error' event on first tick
TypeError: Cannot call method 'apply' of undefined
at EventEmitter.log (/home/ubuntu/local/node/npm/node_modules/npmlog/log.js:63:25)
at EventEmitter.info (/home/ubuntu/local/node/npm/node_modules/npmlog/log.js:137:21)
at Object. (/home/ubuntu/local/node/npm/bin/npm-cli.js:87:2)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)
at Object. (/home/ubuntu/local/node/npm/cli.js:2:1)
make: *** [node_modules/.bin/ronn] Error 1
make: Leaving directory `/home/ubuntu/local/node/npm'
make: *** [man/man3/bin.3] Error 2
Can you help please? As I understand it, I need NPM to install library's on top of node.js, such as socket.io./
That's weird. What version of node are you using?
from git://github.com/joyent/node.git v0.6.17 on Ubuntu 12.04
The latest 0.6 version is 0.6.20. v0.6 is in maintenance mode, and will only see very rare bug fix updates through the end of the year. The current stable version is v0.8.4.
What version of npm are you using? It hasn't had that process.binding("stdio") line for a very long time now.
What do you mean? Does the latest npm come with the latest node.js? can you give me instructions on how to install the npm from you github link? how do I update to 0.6.20?
In the node git source code folder:
git remote add upstream git://github.com/joyent/node
git fetch -a upstream
git checkout v0.6.20
sudo make install
That will install node 0.6.20. You can also get all the dist tarballs for every version ever from here: http://nodejs.org/dist/
I strongly recommend upgrading to node 0.8 as soon as you can manage it.