无法安装Socket.io

时间:2011-10-17 15:27:54

标签: node.js socket.io npm

我正在做最基本的事情:

npm install socket.io

我收到了大量错误,从:

开始
npm ERR! Error: Socket is not writable
npm ERR!     at Socket._writeOut (net.js:391:11)
npm ERR!     at Socket.write (net.js:377:17)
npm ERR!     at Socket.<anonymous> (util.js:375:21)
npm ERR!     at Socket.emit (events.js:64:17)
npm ERR!     at Socket._onReadable (net.js:678:14)
npm ERR!     at IOWatcher.onReadable [as callback] (net.js:177:10)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/Users/shamoon/local/node/bin/npm" "install" "socket.io"

我不知道从哪里开始修理它

2 个答案:

答案 0 :(得分:0)

您是否尝试过githubnpm install

答案 1 :(得分:0)

原来我的tar路径不正确。现在好了=)