Skip to content
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

Error "Algorithm not found in zlib" #28

Closed
danb-cws opened this issue Apr 1, 2016 · 4 comments
Closed

Error "Algorithm not found in zlib" #28

danb-cws opened this issue Apr 1, 2016 · 4 comments

Comments

@danb-cws
Copy link

danb-cws commented Apr 1, 2016

EDIT: working now, replaced: algorithm: 'gzipMaxCompression', with just gzip. Not sure where I picked up that config. Thanks.

Trying to use this plugin on Windows and getting the error: "Algorithm not found in zlib"

node_modules\compression-webpack-plugin\index.js:36
if(!this.algorithm) throw new Error("Algorithm not found in zlib");

I'm on Windows10 pro and have followed the setup as per
https://www.serverpals.com/blog/building-using-node-gyp-with-visual-studio-express-2015-on-windows-10-pro-x64
... ie install VS, Python, added environment variables
This got rid of the previous errors with node-gyp, but now getting this new error.

@danb-cws danb-cws closed this as completed Apr 1, 2016
@bmsdave
Copy link

bmsdave commented Feb 28, 2017

@danb-cws why close? you fix it?

@danb-cws
Copy link
Author

@bmsdave I ended up using this package due to other issues
https://www.npmjs.com/package/compression

@manoj-makkuboy
Copy link

node version v12.2.0 fixes this

@anujm249
Copy link

Also working for v10.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants