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

Using pre-compiled binary fails with got@^11.7.0 #76

Open
ChrisBr opened this issue Jul 1, 2022 · 1 comment
Open

Using pre-compiled binary fails with got@^11.7.0 #76

ChrisBr opened this issue Jul 1, 2022 · 1 comment

Comments

@ChrisBr
Copy link

ChrisBr commented Jul 1, 2022

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.

@ChrisBr
Copy link
Author

ChrisBr commented Jul 1, 2022

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

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

1 participant