lukas-vlcek/node.es — Issue #2: Node.js 0.6 complains: The "sys" module is now called "util". It should have a similar interface.
Author: ottok
Created: 2012-03-08 13:11:46+00:00
State: open

On Ubuntu 11.10 with Node.js version 0.6 running the example gives:

$ node proxy.js
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token /
at Object.parse (native)
at /home/otto/Kirjastot.fi/librarydirectory/server/lib/elasticsearch-proxy.js:179:31
at /home/otto/Kirjastot.fi/librarydirectory/server/lib/elasticsearch-proxy.js:278:9
at new (/home/otto/Kirjastot.fi/librarydirectory/server/lib/elasticsearch-proxy.js:310:5)
at Object.getProxy (/home/otto/Kirjastot.fi/librarydirectory/server/lib/elasticsearch-proxy.js:475:21)
at Object. (/home/otto/Kirjastot.fi/librarydirectory/server/proxy.js:54:32)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)

Apparently node.es is not compatible with Node 0.6 as the sys API has changed..?