Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

TypeError: Cannot call method 'apply' of undefined #2659

Closed
gkharber opened this Issue · 5 comments

2 participants

@gkharber

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[1]: Entering directory `/home/ubuntu/local/node/npm'
node cli.js install https://github.com/isaacs/ronnjs/tarball/master

node.js:134
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 /home/ubuntu/local/node/npm/bin/npm-cli.js:20:5
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[1]: *** [node_modules/.bin/ronn] Error 1
make[1]: 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./

@isaacs
Owner

That's weird. What version of node are you using?

@gkharber

from git://github.com/joyent/node.git v0.6.17 on Ubuntu 12.04

@isaacs
Owner

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.

@isaacs isaacs closed this
@gkharber

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?

@isaacs
Owner

In the node git source code folder:

git remote add upstream git://github.com/joyent/node
git fetch -a upstream
make uninstall
make distclean
git checkout v0.6.20
./configure
make
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.