Comments (16)
it would also be helpful if you could clone or zip download this repo and run "npm test" from root of it. and see if you get same issues with those zips.
from node-archiver.
would need to be actual source, so something like
wget https://github.com/ctalkington/node-archiver/archive/master.zip
unzip master.zip
npm install
npm test
zips would then be in tmp
folder of working dir
from node-archiver.
yep, CRC fails for me too. could you post a package.json stripped down to just deps? that way i can try to archive the exact same for comparison. also the compress config you used would be good too just to eliminate as much as possible.
from node-archiver.
I tried 'unzip -t' on all zip files in tmp/ and none had an error.
from node-archiver.
I've sent you the files you asked for (package.json and gruntfile.js that includes the uncompress commands I used). If you need anything else, please let me know. Thanks. :)
from node-archiver.
hum, never got them, could you send them directly to email. having issues with Google Drive account lately.
from node-archiver.
But, do you still need the file?
I didn't see the errors any more when I tried it with your patched source..
Miwako
2013/7/7 Miwako [email protected]
Well.. I can't because it's over 25 MB...
2013/7/7 Chris Talkington [email protected]
hum, never got them, could you send them directly to email. having issues
with Google Drive account lately.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-20578701
.
from node-archiver.
sorry, meant the "package.json and gruntfile.js" so that i can try to recreate from scratch.
what do you mean by "patched source"?
from node-archiver.
Hi.
By 'patched source', i meant the one you wanted me to download, i.e. you
said
it would also be helpful if you could clone or zip download this repo and
run "npm test" from root of it. and see if you get same issues with those
zips.
from node-archiver.
I'm resending grauntfile.js / package.json.
from node-archiver.
hum, had to fix paths in gruntfile but it creates zip without issue for me. granted its not your full project but did do all the node_modules. could you maybe do the following in your project and try generating zip you had issues with before?
npm cache clean
npm install
grunt compress
from node-archiver.
Sorry it took long.
Yes I did try the command sequences and am getting the same error.
unzip -t app.nw > /dev/null
->
error: invalid compressed data to inflate
file #xxxx: bad zipfile offset (local header sig): yyyyyyyy
2013/7/7 Chris Talkington [email protected]
hum, had to fix paths in gruntfile but it creates zip without issue for
me. granted its not your full project but did do all the node_modules.
could you maybe do the following in your project and try generating zip you
had issues with before?npm cache clean
npm install
grunt compress[image: image]https://f.cloud.github.com/assets/209757/759455/4df76d38-e78a-11e2-83d4-d7ddf420ce0b.png
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-20585641
.
from node-archiver.
does it open in macs archive tool either? does it always start in the same place?
from node-archiver.
Hi.
No, mac archive tool (zip) works correctly.It doesn't always seem to start in the same place.
First time:
file #2329: 15871075
file #2330 : 15871426 ...
Second time:
file #14832: 44462110
file #14833: 44466480...
Third time:
file #8616: 30777629
file #8617: 30778533...
from node-archiver.
Chris.
Summarizing what we've done after this..
I updated node to v0.10.12 and tried the gruntfile.js / package.json you gave me and the zip created did not contain any error. But when I tried my project (after fresh npm install etc), it still gave the same error.
from node-archiver.
@ampgcat im pretty sure this falls under #32 now. I did get a sample from the poster that I was able to recreate and I just made some changes to how are offsets are tracked which seems to get rid of the "bad zipfile offset" but now in that issue I found that i end up "invalid compressed data to inflate" on windows.anyways this issue is moving to other ticket to consolidate.
from node-archiver.
Related Issues (20)
- 压缩后文件的修改时间不正确
- achiver.directory can't use, error with input source must be valid Stream or Buffer instance error HOT 1
- How to zip single file HOT 1
- Dependency Dashboard
- ESM HOT 1
- .directory() generate a empty folder, compress completed will remove the empty folder,could I retain the empty folder?
- Class extends value undefined is not a constructor or null HOT 1
- Is there a way to know how many files were ultimately compressed? HOT 2
- Question: Were there any API changes from 5.3 to 6.x? HOT 1
- Recommendation for an unzip library? HOT 1
- Overwrite existing files
- Missing Release of Resource after Effective Lifetime [High Severity] HOT 1
- zlib level 0 stops the progress of ongoing read streams
- Improve docs around append callback? HOT 1
- How to convert csv to 7z HOT 1
- Heap out of memory with archiver.append() HOT 1
- Append CSV file line by line
- `append()` fails after upgrading from v6 to v7 HOT 4
- Cannot add file named `\` HOT 2
- Archiver Version 7.0 might be breaking due to ESM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-archiver.