node-zopfli
                                
                                
                                
                                    node-zopfli copied to clipboard
                            
                            
                            
                        Download fails with HTTP=403 (Yarn, Node-Gyp, Mac, Node 7.10)
It seems that right now there is some issues downloading binaries for this package. This is the error I got over the last 30 minutes (retried a few times):
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for "/Users/Sebastian/Workspace/sebastian-software/edgestack/node_modules/node-zopfli/lib/binding/node-v51-darwin-x64/zopfli.node" (not found)
node-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v51-darwin-x64.tar.gz
node-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v51-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v51-darwin-x64.tar.gz 
- node --version: v7.10.0
 - yarn --version: 0.24.5
 - npm --version: 4.6.1
 
Hopefully someone has an idea where this is coming from. Thanks a lot!
Same here, the URL is responding access denied. Check: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v51-linux-x64.tar.gz
same here for https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v57-darwin-x64.tar.gz node 8.1.2 npm 5.0.3
hi, @pierreinglebert, can you publish a package with included binaries? like node-zopfli-prebuilt
:cry:
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v57-linux-x64.tar.gz
The same today, please fix this.
Still failing...
http://docs.aws.amazon.com/AmazonS3/latest/dev/HowDoIWebsiteConfiguration.html
You can compile from source instead of downlad prebuild binary
npm install --build-from-source node-zopfli
I tested on: Arch Linux 4.11.12-1-MANJARO node 8.2.1 npm 5.3.0
nope, still the same. How may i solve it?
Same here - 403 when downloading the Widnows File
$ npm install
[email protected] install c:\ReactQL-MongoDB\node_modules\node-zopfli node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/R elease/zopfli-v2.0.2-node-v57-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and node@8. 9.2 (node-v57 ABI) (falling back to source compile with node-gyp)
@leosuncin
same problem on windows
npm install --build-from-source node-zopfli
results in a 403 folr the windows file like i have descripted
@leosuncin The issue is about the linked binary not being accessible. The fallback is building the binary locally, which fails for some - but I guess that's not what this issue is about.
@pierreinglebert Is this repo still maintained?
Seems like another case of "tough luck Windows users, works on my Mac". Amazing how many repos reference this or similar issues and there doesn't seem to be any true answer after a year or so. It's really unfortunate that developing modern web apps on Windows is such a disaster most of the time.
@corydeppen I had the same issue on Mac.This issue may be because of python.If your python version is below 2.7.13,try to update it,it works to me.
same question

solved by npm i --no-optional
Still getting these issues
Works with npm install --build-from-source node-zopfli
But this project does not seem to be maintained anymore and is just barely tested on windows.
Seems bruce-one/node-zopfli works well, try it
When using npm i --build-from-source it works for me. I wonder why this is, since not having binaries should automatically trigger a build from source anyway,
I can't speak for everyone, but on my macOS 14 machine, the npm i auto-build fails when the compiler cannot find the source for lodepng:
../src/png/zopflipng.cc:5:10: fatal error: 'lodepng/lodepng.h' file not foundled to exec install script
Running npm i --build-from-source, however, does not have this problem and succeeds.
NOTE: The fix for #88 definitely looks promising, but in my case node-zopfli was coming in as a transitive dep (via shrink-ray) and so I couldn't fix via that workaround. The final resolution for me was to switch to shrink-ray-current which uses node-zopfli-es instead (which itself does not use node-pre-gyp).
Btw I switched to @gfx/zopfli for now which is not quite as fast but does not have these issues with compilation.
How come this still happens once in a while?
I published a new version that uses the awesome tool prebuild to serve precompiled binaries to all node version (8-12) and on all OS (win32/win64,linux,osx).
Any updates on this, please? I very appreciate all the answers, but non of them unfortunately does not work for me. npm version 6.7.0, Windows 10.
Which version are you using ? 2.1.3 should work fine