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
Missing 'imagemin-gifsicle' module error when executing imagemin #228
Comments
Try reinstalling or install the module manually: |
I tried to install it manually, but did not worked for me. I am getting below error messages:
I think, this might we a network environment issue. But i am able to download other npms. Thanks |
Installing imagemin-gifsicle works for me on Windows 8.1 64-bit with Node.js 0.10.32 and having run npm-update prior to this. I'm having an issue as the first post where unless I manually install these submodules or put them in package.json, imagemin will not work properly. I thought they're supposed to pull down when you install the plugin because of this line on the README: |
You probably have to run |
I am getting the same error. It was working last week but suddenly broke so I assume this might be an issue with the remote dependencies? If I remove the node module and re-run npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
npm WARN optional dep failed, continuing imagemin-gifsicle@1.0.0
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2 It says these are just warnings and that the dependencies are "optional" for the imagemin task, but my entire Grunt process is breaking without them. I guess I might just need to remove the imagemin task from my build process until this is fixed. Anyone else have any luck fixing this? |
As @Saturn2888 mentioned, adding the dependencies manually in the "imagemin-gifsicle": "^2.0.0",
"imagemin-jpegtran": "^2.0.0",
"imagemin-optipng": "^2.0.1",
"imagemin-svgo": "^2.0.0", You will need to re-run |
No luck @trevordmiller. Trying to deploy to Heroku and breaking for the same reason. Will try your fix. |
You might need to also add pngquant to the list. What's the error you're getting @albertpeiro? |
@Saturn2888 Loading "imagemin.js" tasks...ERROR Error: Cannot find module 'imagemin-gifsicle' |
I've tried downgrading node + npm, downgrading imagemin.., read all other issues about the same thing (so many!). I've just ended up disabling imagemin for now. |
And you tried doing |
Yes I have tried this too. My heroku buildpack is node 0.10.32, npm 1.4.24. On 3 October 2014 02:08, Saturn2888 notifications@github.com wrote:
Albert Peiró |
Breaking here as well on version 0.8.1 on a Vagrant box, Ubuntu Trusty 64. I'm trying if installing the remote dependencies through my package.json file works. Update1:
|
Sorry I didn't get back, I got it fixed by downgrading to node version 0.10.26, new versions had some conflicting thingy on windows. |
Looks like this problem might be related to path depth. I guess it is creating a directory under directory and cannot save the file then after the max limit. |
This should be fixed. It was caused by a nested dependency using git remotes which made npm freak out. |
I'm seeing this when I try to install in ubuntu using sudo npm install -g imagemin-gifsicle
path.js:360 npm ERR! weird error 8 |
|
Had the same issue. Didn't want to add dependencies to root |
@madhead that worked for me, thank you! |
I had same issue. It is solved when "grunt-contrib-imagemin" version is changed as below. (in the root package.json) |
@madhead that worked for me as well, thanks! |
@madhead Thanks for the fix. |
@madhead Thank you so much this worked for me as well |
See gruntjs/grunt-contrib-imagemin#228 (Grunt, but applies equally to this)
Just installed imagemin on Windows 7 but I'm getting this error, any light on this? Thanks.
Loading "imagemin.js" tasks...ERROR
Warning: Task "imagemin" not found. Use --force to continue.
The text was updated successfully, but these errors were encountered: