glebdmitriew / node-unzip-2

node.js cross-platform unzip using streams
MIT License
44 stars 39 forks source link

unzip error: "Error: invalid distance code" #24

Closed bi-kai closed 6 years ago

bi-kai commented 6 years ago

unzip a file with unzip2 comes error:

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: invalid distance code
    at Zlib._handle.onerror (zlib.js:370:17)

but I can unzip it with winrar and 7z correctly.

if i unzip that zip file with 7z and rezip it, unzip2 will unzip correctly. I wander what's the format error, why 7z could handle, but unzip2 not.

bi-kai commented 6 years ago

I'm using decompress module now, ant it's fine.