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 #26

Closed
calvinmetcalf opened this issue Jun 13, 2017 · 2 comments
Closed

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

calvinmetcalf opened this issue Jun 13, 2017 · 2 comments

Comments

@calvinmetcalf
Copy link

calvinmetcalf commented Jun 13, 2017

 error TypeError: Cannot read property 'pipesCount' of undefined
    at module.exports.Readable.pipe (_stream_readable.js:545:16)
    at module.exports.ZipArchiveOutputStream._smartStream (/path/to/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:184:11)
    at module.exports.ZipArchiveOutputStream._appendStream (/path/to/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:96:20)
    at module.exports.ArchiveOutputStream.entry (/path/to/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
    at module.exports.ZipStream.entry (/path/to/node_modules/zip-stream/index.js:138:49)

my code that's calling it is pretty strait forward

function write (zip, stream, name) {
  return new Promise((resolve, reject) => {
    zip.entry(stream, {
      name: path.basename(name)
    }, function (err) {
      if (err) {
        return reject(err)
      }
      resolve()
    })
  })
}

from what I can tell DeflateCRC32Stream is not a real stream for some reason and I'm pretty stumped, ideas ?

@ctalkington
Copy link
Member

ctalkington commented Jun 16, 2017

related to issues with node v8 that are since resolved.

archiverjs/node-archiver#236

@himharsh1997
Copy link

This issue I'm facing in nodejs12 while deployment in bitbucket.

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

3 participants