cthackers/adm-zip — Issue #3: 'CRC32 checksum failed' error for valid zip file
Author: jzaefferer
Created: 2012-03-09 13:44:57+00:00
State: open

Working on build scripts for jQuery UI, I'm getting a 'crc32 checksum failed' error on a otherwise valid zip file. Extracting that file with `unzip` or the built-in OSX utility works fine.

To get a copy of the zip file in question, go to http://jqueryui.com/download and click Download on the right side.

Here's my simple script to test this:

var AdmZip = require('adm-zip');
var fs = require('fs');
fs.mkdirSync('tmp');
var zip = new AdmZip('jquery-ui-1.8.18.custom.zip');
zip.extractAllTo('tmp');

The mkdirSync call is necessary due to #2.

Before outputting the error the script actually manages to extract the index.html file.