sindresorhus / gulp-imagemin

Minify PNG, JPEG, GIF and SVG images
MIT License
1.9k stars 157 forks source link

Yarn & gulp & gulp-imagemin: Couldn't load default plugin * #232

Closed emrecamasuvi closed 7 years ago

emrecamasuvi commented 7 years ago

Hi, After upgrading to both node v.7.0 and gulp-imagemin to 3.1.0; began getting these errors as follows;

[10:31:10] Using gulpfile ... \gulpfile.js
[10:31:10] Starting 'imagemin'...
[10:31:10] Finished 'imagemin' after 10 ms
[10:31:10] gulp-imagemin: Couldn't load default plugin "gifsicle"
[10:31:10] gulp-imagemin: Couldn't load default plugin "jpegtran"
[10:31:10] gulp-imagemin: Couldn't load default plugin "optipng"
[10:31:10] gulp-imagemin: Couldn't load default plugin "svgo"
...
[10:31:10] gulp-imagemin: Minified 55 images (saved 0 B - 0%)

PC Microsoft Windows 10 Pro Insider Preview node v.7.0 yarn v.0.16.1 gulp-imagemin v.3.1.0

emrecamasuvi commented 7 years ago

Moving those optional dependencies referenced in #221 to "dependencies" resolved the problem but this doesnt seem like a clean solution to me.

And also i got this in my console;

gulp imagemin
[10:40:25] Using gulpfile ... \gulpfile.js
[10:40:25] Starting 'imagemin'...
[10:40:25] Finished 'imagemin' after 12 ms
(node:14252) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
[10:40:39] gulp-imagemin: Minified 55 images (saved 545 kB - 10.7%)
anuraag279 commented 7 years ago

+1

sindresorhus commented 7 years ago

Open an issue on Yarn.

anthonygilbertt commented 4 years ago

why was this closed? this doesn't address the issue.