Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gilbertbw opened this issue Aug 7, 2013 · 4 comments
Open

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

gilbertbw opened this issue Aug 7, 2013 · 4 comments

Comments

@gilbertbw
Copy link

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
Copy link
Owner

Floby commented Aug 7, 2013

what version of node are you using?
Le 7 août 2013 19:46, "Gilbert Bishop-White" [email protected] 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//issues/21
.

@gilbertbw
Copy link
Author

v0.8.20

On 7 August 2013 19:39, Florent Jaby [email protected] wrote:

what version of node are you using?
Le 7 août 2013 19:46, "Gilbert Bishop-White" [email protected] 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//issues/21#issuecomment-22273648
.

Thanks,
Gilbert.

@Floby
Copy link
Owner

Floby commented Aug 8, 2013

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" [email protected] a
écrit :

v0.8.20

On 7 August 2013 19:39, Florent Jaby [email protected] wrote:

what version of node are you using?
Le 7 août 2013 19:46, "Gilbert Bishop-White" [email protected]
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//issues/21#issuecomment-22278930
.

@gilbertbw
Copy link
Author

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

On 8 August 2013 13:23, Florent Jaby [email protected] 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" [email protected] a
écrit :

v0.8.20

On 7 August 2013 19:39, Florent Jaby [email protected] wrote:

what version of node are you using?
Le 7 août 2013 19:46, "Gilbert Bishop-White" [email protected]

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//issues/21#issuecomment-22319640
.

Thanks,
Gilbert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants