Floby / node-libspotify

Node bindings for the libspotify C library
projects.flo.by/node-libspotify/
102 stars 66 forks source link

utils.js cannot set property 'prototype' of undefined #21

Open gilbertbw opened 11 years ago

gilbertbw commented 11 years ago

When runing tests i get this error:

domain.js:66
    throw er;
          ^
TypeError: Cannot read property 'prototype' of undefined
    at Object.exports.inherits (util.js:538:43)
    at Object.<anonymous> (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at /Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13)
    at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13)
    at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25)
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17)
    at exports.runModule (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9)
    at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13)
    at async.forEachSeries (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

Floby commented 11 years ago

what version of node are you using? Le 7 août 2013 19:46, "Gilbert Bishop-White" notifications@github.com a écrit :

When runing tests i get this error:

domain.js:66 throw er; ^TypeError: Cannot read property 'prototype' of undefined at Object.exports.inherits (util.js:538:43) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at /Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37 at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13) at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13) at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25) at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17) at exports.runModule (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9) at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13) at async.forEachSeries (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)npm ERR! Test failed. See above for more details.npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

— Reply to this email directly or view it on GitHubhttps://github.com/Floby/node-libspotify/issues/21 .

gilbertbw commented 11 years ago

v0.8.20

On 7 August 2013 19:39, Florent Jaby notifications@github.com wrote:

what version of node are you using? Le 7 août 2013 19:46, "Gilbert Bishop-White" notifications@github.com a écrit :

When runing tests i get this error:

domain.js:66 throw er; ^TypeError: Cannot read property 'prototype' of undefined at Object.exports.inherits (util.js:538:43) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10)

at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at /Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37

at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13)

at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13)

at async.forEachSeries.iterate (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25)

at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17)

at exports.runModule (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9)

at _concat (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13)

at async.forEachSeries (/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)npm ERR! Test failed. See above for more details.npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21> .

— Reply to this email directly or view it on GitHubhttps://github.com/Floby/node-libspotify/issues/21#issuecomment-22273648 .

Thanks, Gilbert.

Floby commented 11 years ago

you need to use 0.10 at least. the stream interface changed drastically and I just cannot support both. Le 7 août 2013 21:53, "Gilbert Bishop-White" notifications@github.com a écrit :

v0.8.20

On 7 August 2013 19:39, Florent Jaby notifications@github.com wrote:

what version of node are you using? Le 7 août 2013 19:46, "Gilbert Bishop-White" notifications@github.com a écrit :

When runing tests i get this error:

domain.js:66 throw er; ^TypeError: Cannot read property 'prototype' of undefined at Object.exports.inherits (util.js:538:43) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.

(/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10)

at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at

/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13)

at async.forEachSeries.iterate

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13)

at async.forEachSeries.iterate

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25)

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17)

at exports.runModule

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9)

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13)

at async.forEachSeries

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)npm

ERR! Test failed. See above for more details.npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21> .

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21#issuecomment-22273648> .

Thanks, Gilbert.

— Reply to this email directly or view it on GitHubhttps://github.com/Floby/node-libspotify/issues/21#issuecomment-22278930 .

gilbertbw commented 11 years ago

OK, thanks, I will update node and try again when I get home.

On 8 August 2013 13:23, Florent Jaby notifications@github.com wrote:

you need to use 0.10 at least. the stream interface changed drastically and I just cannot support both. Le 7 août 2013 21:53, "Gilbert Bishop-White" notifications@github.com a écrit :

v0.8.20

On 7 August 2013 19:39, Florent Jaby notifications@github.com wrote:

what version of node are you using? Le 7 août 2013 19:46, "Gilbert Bishop-White" notifications@github.com

a

écrit :

When runing tests i get this error:

domain.js:66 throw er; ^TypeError: Cannot read property 'prototype' of undefined at Object.exports.inherits (util.js:538:43) at Object. (/Users/gilbert/Downloads/node-libspotify-master/lib/Player.js:31:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.

(/Users/gilbert/Downloads/node-libspotify-master/lib/libspotify.js:3:18)

at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.

(/Users/gilbert/Downloads/node-libspotify-master/test/test-000-config.js:2:10)

at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at

/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/nodeunit.js:75:37

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:508:13)

at async.forEachSeries.iterate

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:118:13)

at async.forEachSeries.iterate

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:129:25)

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:510:17)

at exports.runModule

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/lib/core.js:164:9)

at _concat

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:513:13)

at async.forEachSeries

(/Users/gilbert/Downloads/node-libspotify-master/node_modules/nodeunit/deps/async.js:114:20)npm

ERR! Test failed. See above for more details.npm ERR! not ok code 0

I get a very similar error when running node play.js in the examples folder

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21> .

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21#issuecomment-22273648>

.

Thanks, Gilbert.

— Reply to this email directly or view it on GitHub< https://github.com/Floby/node-libspotify/issues/21#issuecomment-22278930> .

— Reply to this email directly or view it on GitHubhttps://github.com/Floby/node-libspotify/issues/21#issuecomment-22319640 .

Thanks, Gilbert.