English 中文(简体)
npm install issues on Ubuntu 9.04
原标题:
  • 时间:2010-09-24 16:27:15
  •  标签:
  • node.js
  • npm

I’m trying to install npm using the commands from here: http://howtonode.org/introduction-to-npm

Specifically, when I run:

curl http://npmjs.org/install.sh | sh

This is the error I get...

node cli.js cache clean
TypeError: Object #<an EventEmitter> has no method  on 
at Object.<anonymous> (/home/sanjay/npm-1285345468/lib/utils/rm-rf.js:12:9)
at Module._compile (module:385:23)
at Module._loadScriptSync (module:397:16)
at Module.loadSync (module:296:10)
at loadModule (module:241:16)
at require (module:364:12)
at Object.<anonymous> (/home/sanjay/npm-1285345468/cli.js:14:10)
at Module._compile (module:385:23)
at module:413:20
at fs:52:23
make: *** [uninstall] Error 1
sanjay@sanjay-desktop:~$ 

Not sure if I am doing something silly, any help is appreciated. Thank you!

最佳回答

That article is quite outdated.

Since version 0.6.3, npm is bundled into node.js.

Install the latest version of node from http://nodejs.org/ and you ll get npm aswell.

问题回答

I had the same error - upgrading to the latest stable version made it go away and I m happily npm ing.





相关问题
How to make Sequelize use singular table names

I have an model called User but Sequelize looks for the table USERS whenever I am trying to save in the DB. Does anyone know how to set Sequelize to use singular table names? Thanks.

What is Node.js? [closed]

I don t fully get what Node.js is all about. Maybe it s because I am mainly a web based business application developer. What is it and what is the use of it? My understanding so far is that: The ...

Clientside going serverside with node.js

I`ve been looking for a serverside language for some time, and python got my attention somewhat. But as I already know and love javascript, I now want learn to code on the server with js and node.js. ...

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

How do I escape a string for a shell command in node?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I d like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a ...

热门标签