Closed onyxmueller closed 13 years ago
When I attempted to remove the color logic from the problem area and tried to re-run, I got the following error:
Thanks for noticing. I'm looking into it now... Also, which version of node are you using? master
branch?
In order to install node-icecast-stack via npm (to address any dependencies), I had to use a node version 0.3.x...according to the error message I got from npm. So, I went with the latest (unstable) version of node, which is 0.3.5.
Indeed, node-icecast-stack
is only compatible with >= 0.3.0. Silly question of me :P
Anyway, this seems to be a tougher problem than I could figure out quickly. I'm not exactly sure what's changed, but it definitely used to work. Something might have changed with Node's API or something. I'm still looking into it...
Ok, figured it out!
I hadn't pushed some changes in the http-stack
repo to npm in a while, but that's what was needed.
Please run:
npm update http-stack
and all should work well :)
It worked like a charm. Thanks for your quick turnaround in resolving this. You da man!
This is the error thrown after git'ing your repository and running basic.js out of the box. I believe the use of the colors node module is incorrect. Stack trace below:
TypeError: Cannot read property 'blue' of undefined at /Users/onyx/temp/node-icecast-stack/examples/basic/basic.js:31:37 at Array.forEach (native) at Client. (/Users/onyx/temp/node-icecast-stack/examples/basic/basic.js:30:18)
at Client.emit (events.js:59:20)
at HttpRequestStack.emit (/usr/local/lib/node/.npm/stream-stack/1.1.0/package/stream-stack.js:196:23)
at HttpRequestStack._onHeadersComplete (/usr/local/lib/node/.npm/http-stack/0.0.2/package/lib/http-stack.js:92:8)
at HttpRequestStack._onData (/usr/local/lib/node/.npm/http-stack/0.0.2/package/lib/http-stack.js:63:12)
at Socket. (native)
at Socket._origEmit (events.js:59:20)
at Socket.emit (/usr/local/lib/node/.npm/stream-stack/1.1.0/package/stream-stack.js:191:28)