Using pre-compiled binary fails with got@^11.7.0
ChrisBr opened this issue · comments
Christian Bruckmayer commented
tl;dr: mozjpeg-bin uses bin-wrapper to download precompiled binaries. When updated got
> 11.7.0 this will start failed.
got
> 11.7.0 requests an encoding to be set which download did never set.
I'm not sure which repository is the best to report this. I guess the most sensible one would be download but both download
and bin-wrapper
seem not to be maintained.
Christian Bruckmayer commented
Just reporting this as it took me a couple of hours to track this one down.
Error message in our case was something like
Building fresh packages...
--
| error /app/node_modules/mozjpeg: Command failed.
| Exit code: 1
| Command: node lib/install.js
| Arguments:
| Directory: /app/node_modules/mozjpeg
| Output:
| To get a Buffer, set `options.responseType` to `buffer` instead
| mozjpeg pre-build test failed
| compiling from source
| (node:165) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
| (Use `node --trace-deprecation ...` to show where the warning was created)
| Error: Command failed: /bin/sh -c ./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/app/node_modules/mozjpeg/vendor" --bindir="/app/node_modules/mozjpeg/vendor" --libdir="/app/node_modules/mozjpeg/vendor"
| configure: error: no nasm (Netwide Assembler) found