LearnBoost/socket.io — Issue #628: NodeJS v0.6.0 (current Homebrew head revision) breaks socket.io-0.8.7 (npm head revision)
Author: ygreen
Created: 2011-11-08 19:14:23+00:00
State: open

Looks like our NodeJS friends have just rev'd the head revision in brew to 0.6.0, but anyone pulling socket.io from npm won't be able to use it.

nodebox:mesa ygreen$ node startup.js
info - socket.io started
The "sys" module is now called "util". It should have a similar interface.
warn - error raised: Error: getaddrinfo ENOENT

Looks like there are only a few references in my environment modules to the problematic require:

nodebox:mesa ygreen$ grep -R 'require("sys' .
./node_modules/socket.io/node_modules/redis/generate_commands.js: sys = require("sys"),
./node_modules/socket.io/node_modules/redis/lib/util.js: exports.util = require("sys");
./node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/beautify.js:global.sys = require("sys");
./node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/testparser.js:var sys = require("sys");

...but I'm hesitant to just hack around in there and fix them myself until officially patched, so I thought I would broadcast in case no one was aware of this and is working on it yet.