pierrec / node-lz4

LZ4 fast compression algorithm for NodeJS
MIT License
438 stars 98 forks source link

bug in 0.1? #10

Closed kshailove closed 10 years ago

kshailove commented 10 years ago

Hello, I installed v0.1 (I can't use 0.2, since I don't have an option to upgrade to node 0.10 which is a pre-requisite for 0.2). Got below error while executing:-

util.js:538 ctor.prototype = Object.create(superCtor.prototype, { ^ TypeError: Cannot read property 'prototype' of undefined at exports.inherits (util.js:538:43) at Object. (/home/ubuntu/node_modules/lz4/lib/decoder_stream.js:25:1) 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. (/home/ubuntu/node_modules/lz4/lib/lz4.js:14:31) at Module._compile (module.js:449:26)

kshailove commented 10 years ago

Looks like stream.js doesn't contain Transform object in node 0.8.7. Is there a workaround I can use to use this module on node 0.8.7?

pierrec commented 10 years ago

Hello there,

I have checked and it is because you need to use v0.0.5, the latest which does not rely on NodeJS Streams v2, but still on Streams v1.

Could you have a go with that version and let me know?

Cheers,

Pierre

pierrec commented 10 years ago

I hope you fixed your issue! Closing this.