EvanOxfeld / node-unzip

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

Error: invalid signature: 0x70a4935 #114

Closed taozi0818 closed 4 years ago

taozi0818 commented 6 years ago

I can unzip a .zip file in Terminal with bash command, but use node-unzip. This file's size is 7.1 GB. Can it cause the failure? can not unzip it on both MacOS and Windows OS

fs.createReadStream(zipFile)
  .pipe(unzip.Parse())
  .on('entry', (entry) => {
    let fileName = entry.path;
    entry.pipe(fs.createWriteStream(output));
  })
  .on('close', () => {
    // Do something
  })
  .on('error', (err) => {
    // Handle error
  });
taozi0818 commented 6 years ago

use yauzl to replace node-unzip