EvanOxfeld / node-unzip

node.js cross-platform unzip using streams
MIT License
615 stars 343 forks source link

"invalid signature: 0x47d68d75" error on zip files from TeamCity #41

Open evil-shrike opened 11 years ago

evil-shrike commented 11 years ago

JetBrains TeamCity can pack artifacts as zip files. I'm trying to unzip a file from my build artifacts with unzip. It's failing with error :

Error: invalid signature: 0x47d68d75
    at path\to\unzip\unzip\lib\parse.js:63:13
    at process._tickCallback (node.js:415:13)

BTW "bower install" fails on such zip-files as it uses unzip.

The Zip file itself is OK. It can be unpacked with WinRAR and official PKZIP from PKWARE without any errors.

When I created new zip files with WinRAR and PKWARE's PKZIP unzip fails on them in another way:

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

RangeError: Maximum call stack size exceeded

What format of ZIP the module does support? It seems to be incompatible with official PKZIP.

cscott commented 11 years ago

It seems to be that 'stored' files in the zip are not supported.

amio commented 10 years ago

Same as #32

seagullua commented 9 years ago

This is fixed in new package https://www.npmjs.com/package/unzip2

brandonscript commented 9 years ago

It would be great if you could unpublish the old unzip package from NPM or at least add a note saying it's superseded by unzip2.