node-zopfli icon indicating copy to clipboard operation
node-zopfli copied to clipboard

Download fails with HTTP=403 (Yarn, Node-Gyp, Mac, Node 7.10)

Open swernerx opened this issue 8 years ago • 28 comments

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!

swernerx avatar May 23 '17 14:05 swernerx

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

mtmr0x avatar May 24 '17 18:05 mtmr0x

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

umens avatar Jun 19 '17 21:06 umens

hi, @pierreinglebert, can you publish a package with included binaries? like node-zopfli-prebuilt

iamstarkov avatar Jun 20 '17 15:06 iamstarkov

:cry:

thasmo avatar Jun 25 '17 07:06 thasmo

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

CalvinLeeC7E avatar Jul 24 '17 08:07 CalvinLeeC7E

The same today, please fix this.

ghost avatar Aug 05 '17 22:08 ghost

Still failing...

http://docs.aws.amazon.com/AmazonS3/latest/dev/HowDoIWebsiteConfiguration.html

carlosjgp avatar Aug 09 '17 14:08 carlosjgp

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

leosuncin avatar Aug 12 '17 04:08 leosuncin

nope, still the same. How may i solve it?

Kamill90 avatar Jan 24 '18 20:01 Kamill90

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)

chrisLovesCode avatar Jan 25 '18 10:01 chrisLovesCode

@leosuncin

same problem on windows

npm install --build-from-source node-zopfli results in a 403 folr the windows file like i have descripted

chrisLovesCode avatar Jan 25 '18 10:01 chrisLovesCode

I don't know what to say. It works on my machine, maybe a missing build dependency is the problem. asciicast

leosuncin avatar Jan 26 '18 07:01 leosuncin

@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.

thasmo avatar Feb 16 '18 20:02 thasmo

@pierreinglebert Is this repo still maintained?

thasmo avatar Feb 16 '18 20:02 thasmo

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 avatar Feb 25 '18 04:02 corydeppen

@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.

insistandinsist avatar May 15 '18 12:05 insistandinsist

same question

image

lishichao1002 avatar Jun 11 '18 03:06 lishichao1002

solved by npm i --no-optional

wuwb avatar Jun 19 '18 07:06 wuwb

Still getting these issues

slimlime avatar Jun 29 '18 22:06 slimlime

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.

DominicBoettger avatar Aug 21 '18 10:08 DominicBoettger

Seems bruce-one/node-zopfli works well, try it

studentIvan avatar Oct 03 '18 12:10 studentIvan

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,

matthiasg avatar Jan 21 '19 11:01 matthiasg

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).

zgramana avatar Feb 11 '19 19:02 zgramana

Btw I switched to @gfx/zopfli for now which is not quite as fast but does not have these issues with compilation.

matthiasg avatar Feb 12 '19 07:02 matthiasg

How come this still happens once in a while?

sanchapereira avatar Apr 09 '19 16:04 sanchapereira

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).

pierreinglebert avatar Oct 19 '19 15:10 pierreinglebert

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.

IvannKurchenko avatar Jan 30 '20 08:01 IvannKurchenko

Which version are you using ? 2.1.3 should work fine

pierreinglebert avatar Feb 02 '20 05:02 pierreinglebert