Using node -v v0.10.29, npm -v 1.4.14 (http://ppa.launchpad.net/chris-lea/node.js/ubuntu)
when doing a "npm install" of a project, "zlib@1.0.5 preinstall" always shouts "sh: 1: node-waf: not found"
I've seen some other questions about the same thing, but I still don't know what I have to do to make "npm install" work.
Thanks.
The node-waf package has been replaced by node-gyp, this is why you get the not found error. The package is not available anymore: https://www.npmjs.org/search?q=node-waf
The zlib package you want to install has not been updated for years. Node.js has built-in support for Zlib, see the manual for more details: Zlib.
node-zopfli does the exact same thing, if all you want is to gzip a stream. https://github.com/duralog/node-zopfli
example I use for tar-gzipping stuff:
fstream.Reader({ 'path': filesFolder, 'type':
'Directory' }).
pipe(tar.Pack())
//.pipe(zlib.Gzip()) // this is what I used to do
.pipe(zopfli.createGzip())
.pipe(out); // out is an output stream, obviously