arei / npmbox

Utility for creating (boxing) and using (unboxing) an archive of a complete (including all dependencies) npm install.
MIT License
245 stars 34 forks source link

TypeError: Invalid non-string/buffer chunk] #40

Closed amitsehgal closed 8 years ago

amitsehgal commented 9 years ago

I have been trying to npmunbox private-bower and mocha on rhel 6 & 7 with node version v0.12.7 . Does anyone knows what is the issue ? npmbox@2.7.0

npmunbox private-bower.npmbox

Unboxing private-bower.npmbox... Unpacking private-bower... [TypeError: Invalid non-string/buffer chunk]

Same error with mocha npmunbox mocha.npmbox

Unboxing mocha.npmbox... Unpacking mocha... [TypeError: Invalid non-string/buffer chunk]

Tiuser4567 commented 9 years ago

Above is a problem with the decompress lib (bug in versions earlier than 3.0.0, npmbox is using 2.3.0) https://github.com/kevva/decompress/issues/26

workaround is to edit npmboxxer.js and in the tarExtract function, revert to using targz (the commented out code) and comment out the decompress related code.

Need to update npmbox to use decompress v3.0.0+

arei commented 9 years ago

Pull Requests are always welcome!

swetakadam commented 9 years ago

wow this worked thanks @Tiuser4567

arei commented 8 years ago

Attempted to upgrade decompress to v3.0.0 for the npmbox 3.0.0 release. However, I had some issues using decompress v3.0.0 and the documentation was a little lacking for my needs. Perhaps when I can do more of a deep dive I can do this upgrade.

arei commented 8 years ago

This is fixed in 3.1.0 as I removed the decompress library entirely and switched back to targz for extracting the files.