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
imagemin:dist Error #254
Comments
I'm having the same issue. Would love to get some feedback on this. |
Created a stackoverflow too: http://stackoverflow.com/questions/26005479/imagemindist-task-throwing-error |
Well.. I got it working.. see my answer on stack overflow. |
Well, did you get any errors upon installation? |
I saw something to do w/ that png library on npm install.. so that's what gave me the breadcrumb to install it. |
So, the pngquant binary failed. OS? |
I think that was it. I'm sorry.. I can't remember the exact error I saw.. My build server is old.. Ubuntu 11 Works flawlessly on my mac. |
We simply can't guarantee that all binaries will work on all OS, especially if they are that old. I'm using Ubuntu 14.04 and all binaries works seamlessly. You should pay attention to messages during installation and follow the instructions. |
But.. my os is mac OS x version 10.9.4. |
This was a matter of a missing library, not user error not by not "paying attention". If that library is missing, it might be a good idea to throw a more meaningful error during the grunt build. It was just by chance that I connected the install messages w/ the grunt error in the OP. @victoy, durring npm install, there's some packages that complain about "pre-build tests" failing, or something like that. One of them mentions the library that I put in my stack overflow answer. |
@RavenHursT, that library is only needed if the pre-build fails since it'll try and build it. The pre-build checks if the precompiled binary works. |
@RavenHursT, I checked your stack overflow answer. Thanks. |
I am getting a similar error on OSX 10.9 $ npm install --save-dev imagemin-pngquant
downloading : https://raw.github.com/imagemin/pngquant-bin/v1.0.1/vendor/osx/pngquant $ grunt imagemin:dist |
Same issue with message:
My grunt taks config:
I'm use Ubuntu 12.04 |
Same for Mac OS X 10.9.5 |
Fixed it by doing the following:
After doing this, I no longer get that error |
I don't get this error locally (Mac OS X 10.8.5), but I do get it when I attempt a push to Heroku, using a multi buildpack that includes nodejs-grunt buildpack.
During the npm install to heroku, I see these pre-build messages related to first gifsicle and pngquant:
|
On OS X 10.9.5, I'm also getting the error:
I'm using grunt-contrib-imagemin v0.8.1 and imagemin-pngquant v2.0.0. Neither solutions from @RavenHursT or @paulbjensen have fixed it for me. |
I have exactly the same issue on Windows. Did clean install and this:
grunt serve works (no more imagemin errors), but grunt (for deploy) fails with If I use --force there is no image. |
I have same problem on ubuntu.
All necessary modules were installed successfully... |
If you install any imagemin-plugin manually it'll use the latest version which makes use of streams. grunt-contrib-imagemin hasn't been updated to work with streams yet but there's an open PR for it (#251). If gifsicle is failing, try |
Same error on Windows(7):
The
Output from running
Sadly there is exactly |
You're using an unsupported version of imagemin-mozjpeg (grunt-contrib-imagemin doesn't support the stream based plugins yet). Try this |
Oh. Why that? And how do you know that? I haven't provided any information about what version I use. Btw, it's the following (
|
I know that because of the last lines in your log ( |
I got that you are the author, but didn't know that Anyway, some additional info: The plugin and version I use is on of the plugins linked to from the |
Yeah, they work just fine with imagemin. But grunt-contrib-imagemin hasn't updated the imagemin dependency to 2.0.0 yet (just got merged yesterday in 04b8c10) so it's making use of an older API. |
oh, man. If I'd only known earlier.. :/ thanks a lot. |
Yeah, no problem! Keep an eye on other open/closed issues to see if other people have the same problem. It feels like I have answered this in a couple different tickets now :P. |
This should be fixed in 0.9.0. |
Hi,
When I tried to do "grunt imagemin:dist", the below error occurred.
Task source: ~/MyApp/node_modules/grunt-contrib-imagemin/tasks/imagemin.js
Fatal error: Object #< DestroyableTransform > has no method 'apply'
The version of grunt-contrib-imagemin is 0.8.1.
And I use through2 for image stream. Actually, the angular fullstack use through2 for it.
Thanks.
The text was updated successfully, but these errors were encountered: