Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'pipesCount' of undefined #25

Closed
NN--- opened this issue Jun 1, 2017 · 6 comments
Closed

TypeError: Cannot read property 'pipesCount' of undefined #25

NN--- opened this issue Jun 1, 2017 · 6 comments

Comments

@NN---
Copy link

NN--- commented Jun 1, 2017

Using Node 8 with gulp-zip the following error is arrives.
Unsure whether it is relevant for this project or for gulp.

TypeError: Cannot read property 'pipesCount' of undefined
    at module.exports.Readable.pipe (_stream_readable.js:545:16)
    at module.exports.ZipArchiveOutputStream._smartStream (test\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:184:11)
    at module.exports.ZipArchiveOutputStream._appendStream (test\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:96:20)
    at module.exports.ArchiveOutputStream.entry (test\node_modules\compress-commons\lib\archivers\archive-output-stream.js:88:10)
    at module.exports.ZipStream.entry (test\node_modules\zip-stream\index.js:138:49)
    at Zip.append (test\node_modules\archiver\lib\plugins\zip.js:53:15)
    at Archiver._moduleAppend (test\node_modules\archiver\lib\core.js:172:16)
    at Archiver._onQueueTask (test\node_modules\archiver\lib\core.js:370:8)
    at test\node_modules\async\dist\async.js:4025:5
    at process (test\node_modules\async\dist\async.js:2332:17)
    at Immediate._onImmediate (test\node_modules\async\dist\async.js:2136:16)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)
@dehimer
Copy link

dehimer commented Jun 2, 2017

Yes, I got this error too. I use node-archiver for export of group of files by email and yesterday got this error too.
archiverjs/node-archiver#236

@dehimer
Copy link

dehimer commented Jun 2, 2017

All problem in last changes of zlib library.
nodejs/node#13370

@danielweck
Copy link

Yep, same error (NodeJS 8)

_stream_readable.js:545
  switch (state.pipesCount) {
               ^
TypeError: Cannot read property 'pipesCount' of undefined
    at module.exports.Readable.pipe (_stream_readable.js:545:16)
    at module.exports.ZipArchiveOutputStream._smartStream (/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:184:11)
    at module.exports.ZipArchiveOutputStream._appendStream (/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:96:20)
    at module.exports.ArchiveOutputStream.entry (/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
    at module.exports.ZipStream.entry (/node_modules/zip-stream/index.js:138:49)
    at Zip.append (/node_modules/archiver/lib/plugins/zip.js:53:15)
    at Archiver._moduleAppend (/node_modules/archiver/lib/core.js:172:16)
    at Archiver._onQueueTask (/node_modules/archiver/lib/core.js:370:8)
    at /node_modules/async/dist/async.js:3879:9

@franciscocpg
Copy link

Apparently it was solved on node 8.1.0. I haven't tested yet.
https://nodejs.org/en/blog/release/v8.1.0/
nodejs/node#13374

@dehimer
Copy link

dehimer commented Jun 8, 2017

I tested. Now node-archiver again is works for me.

@NN---
Copy link
Author

NN--- commented Jun 9, 2017

Confirm.
Node 8.1 with npm 5.0.3 everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants