sindresorhus / gulp-imagemin

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

Can't seem to run gulp-imagemin on my mac m1 #374

Open gregmercer opened 2 years ago

gregmercer commented 2 years ago

Getting the following error when trying to run:

const imagemin = require('gulp-imagemin'); .pipe( imagemin(...

error says...

Error in plugin "gulp-imagemin" Message: qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Details: code: 255 killed: false stdout: stderr: qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Is there any workaround for this? Thanks.

MikeMcC399 commented 1 year ago

@gregmercer

Did you find a solution for your issue? Which version of gulp-imagemin are you using?

MikeMcC399 commented 1 year ago

It has been reported that it is necessary to have Rosetta 2 installed.