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

Can't pass install this package in docker linux #25

Open
nvtin opened this issue Oct 12, 2020 · 3 comments
Open

Can't pass install this package in docker linux #25

nvtin opened this issue Oct 12, 2020 · 3 comments

Comments

@nvtin
Copy link

nvtin commented Oct 12, 2020

I make it works well on my local with OSX but can't deploy it to docker kubernetes with linux
Here is error

[5/5] Building fresh packages...
error /app/node_modules/jpeg-recompress-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: /app/node_modules/jpeg-recompress-bin
Output:
⚠ spawn /app/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress ENOENT
⚠ jpeg-recompress pre-build test failed

@b0rrasca
Copy link

Having a similar issue trying to install this in docker linux, using armhf architecture

npm install --save imagemin-jpeg-recompress
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /usr/src/app/node_modules/jpeg-recompress-bin
npm ERR! command failed
npm ERR! command sh -c -- node lib/install.js
npm ERR! spawn Unknown system error -8
npm ERR! jpeg-recompress pre-build test failed

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-12-14T00_39_11_114Z-debug-0.log

@bouchepat
Copy link

Same here, worked yesterday and fails today:

> [email protected] postinstall C:\Repositories\zaber-web\zeteor-web-nest\node_modules\jpeg-recompress-bin
> node lib/install.js

Response code 503 (hostname doesn't match against certificate)
jpeg-recompress pre-build test failed

@mshornikov
Copy link

Same issue, after running npm i in Dockerfile

#0 38.52 npm ERR! code 1
#0 38.52 npm ERR! path /node_modules/jpeg-recompress-bin
#0 38.52 npm ERR! command failed
#0 38.52 npm ERR! command sh -c node lib/install.js
#0 38.52 npm ERR! Command failed: /node_modules/jpeg-recompress-bin/vendor/jpeg-recompress --version
#0 38.52 npm ERR! qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#0 38.52 npm ERR!
#0 38.52 npm ERR!
#0 38.52 npm ERR! jpeg-recompress pre-build test failed
#0 38.52
#0 38.52 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-04-17T06_29_17_157Z-debug-0.log

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