-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Connect version 1.9.1: zlib used but not included in package.json #613
Comments
That would be https://github.com/joyent/node/blob/master/lib/zlib.js, which is built into node. It landed in node 0.5.8. If you're using a previous version of node, the |
Thanks. We are using a much older version and currently we don't have the capacity to fully test our application with newer node.js. The temporary solution we have is to run 'npm install zlib' explicitly before installing any other packages in package.json. |
I agree with fanqi1234: for 0.4.x it should either detect whether 'zlib' is available and just not use compression if not or 'compress' middleware should be completely removed from 1.x branch. Please reopen. |
+1 on reopening I just got the zlib error while installing "express" with node-0.4.10 Would encoding the dependency on "zlib" install a duplicate when using a version of "node" with zlib built in ? |
@strk yeah it would be best as an optional-dependency since some people wont use it at all, and mostly because you have to compile which sucks |
actually it just shouldn't have been backported at all, it could have been a third-party backport with zlib as the dep |
On Tue, Jul 03, 2012 at 01:48:10PM -0700, TJ Holowaychuk wrote:
I actually love compiling :) --strk; |
well it's not a nice thing to force on people just for a backport :p |
|
supes slow |
'twas partially a joke (I mean, people looking for good performance should upgrade to the latest node anyways) |
This is a workaround to "express" requiring a version of "connect" which doesn't do so. See senchalabs/connect#613
in ./lib/middleware/compress.js: var zlib = require('zlib');
but there is no corresponding dependency in package.json
This breaks automatic server setup. Please fix by either adding zlib dependency in package.json or remove the require('zlib'); from the code. Thanks.
The text was updated successfully, but these errors were encountered: