Getting node-compress to work on Node 0.6

I have a lot of respect for Node, but sometimes certain npm packages become out of sync with the latest version and break. Today, that npm package was node-compress.

While the package looked to build, when attempting to require the module it would error.

$ node
> var c = require(‘compress’)
Error: Cannot find module ‘compress’

After a quick look around on GitHub I found a fork with the fix

In your package.json, simply reference the tarball, clean out the node_modules directory, install and everything should work again.


    , “compress”:”″

Leave a Reply

Your email address will not be published. Required fields are marked *