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

compress-Images not getting installed #40

Open
khushbu-maurya opened this issue Apr 17, 2020 · 8 comments
Open

compress-Images not getting installed #40

khushbu-maurya opened this issue Apr 17, 2020 · 8 comments

Comments

@khushbu-maurya
Copy link

Screenshot from 2020-04-17 18-11-35

node version: 8.10.0

@Yuriy-Svetlov
Copy link
Owner

@khushbu-maurya
Try install compress-images 1.7.4

@Yuriy-Svetlov
Copy link
Owner

Yuriy-Svetlov commented Apr 17, 2020

Or maybe need node 10

@Yuriy-Svetlov
Copy link
Owner

@khushbu-maurya
You do not can install - npm install gifsicle --save

@khushbu-maurya
Copy link
Author

@khushbu-maurya
Try install compress-images 1.7.4

still same issue

@Yuriy-Svetlov
Copy link
Owner

@khushbu-maurya

  1. Remove compress-images

  2. Try install compress-images 1.7.6

You get error from gifsicle but not from compress-images

@beatrizsmerino
Copy link

beatrizsmerino commented Apr 21, 2020

This working for me:

stable version -> 1.7.6

If you run for install:
npm i -D gifsicle
npm i -D compress-images
npm i -D pngquant-bin

If you run for solve posible errors:
npm audit fix
npm install

package.json
...
"compress-images": "^1.7.6",
"gifsicle": "^5.0.0",
"pngquant-bin": "^5.0.2"
...

image

image

Captura de pantalla 2020-04-21 a las 14 54 23

@hotibolshe
Copy link

hotibolshe commented Apr 23, 2020

@khushbu-maurya, there's an issue with gifsicle as it's 5.0.0 version doesn't contain bin for Linux :(
imagemin/gifsicle-bin#113

@nvtin
Copy link

nvtin commented Oct 12, 2020

I am here because I can't install it in docker linux.
It worked well for me on local with OSX but production with linux in docker

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

Anyone faced this issue?

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

5 participants