$ node ./tar-stream-example.js
internal/streams/pipeline.js:54
return from.pipe(to);
^
TypeError: Cannot read property 'pipe' of undefined
at pipe (internal/streams/pipeline.js:54:15)
at Array.reduce (<anonymous>)
at pipeline (internal/streams/pipeline.js:94:18)
at Object.<anonymous> (/Users/aol/develop/lotes-local/bootstrap.js/tar-stream-example.js:17:1)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
minimal example:
Actual output:
Does not work either. How come? Any workarounds? Why am I forced to create two separate pipes (in -> extract and repack -> out)? Please, help!
Andrey