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

Missing 'imagemin-gifsicle' module error when executing imagemin #228

Closed
Danilux opened this issue Jun 10, 2014 · 25 comments
Closed

Missing 'imagemin-gifsicle' module error when executing imagemin #228

Danilux opened this issue Jun 10, 2014 · 25 comments

Comments

@Danilux
Copy link

Danilux commented Jun 10, 2014

Just installed imagemin on Windows 7 but I'm getting this error, any light on this? Thanks.

Loading "imagemin.js" tasks...ERROR

Error: Cannot find module 'imagemin-gifsicle'

Warning: Task "imagemin" not found. Use --force to continue.

@kevva
Copy link
Member

kevva commented Jun 13, 2014

Try reinstalling or install the module manually: npm install imagemin-gifsicle.

@hegdeashwin
Copy link

I tried to install it manually, but did not worked for me. I am getting below error messages:


ashwinh@ASHWINH-W7 /d/Project/
$ npm install imagemin-gifsicle
npm http GET https://registry.npmjs.org/imagemin-gifsicle
npm http 304 https://registry.npmjs.org/imagemin-gifsicle
npm http GET https://registry.npmjs.org/exec-buffer
npm http GET https://registry.npmjs.org/gifsicle
npm http GET https://registry.npmjs.org/image-type
npm http 304 https://registry.npmjs.org/gifsicle
npm http 304 https://registry.npmjs.org/image-type
npm http 304 https://registry.npmjs.org/exec-buffer
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/is-bmp
npm http GET https://registry.npmjs.org/bin-build
npm http GET https://registry.npmjs.org/is-gif
npm http GET https://registry.npmjs.org/bin-wrapper
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/is-jxr
npm http GET https://registry.npmjs.org/is-png
npm http GET https://registry.npmjs.org/is-psd
npm http GET https://registry.npmjs.org/is-tif
npm http GET https://registry.npmjs.org/is-jpg
npm http GET https://registry.npmjs.org/is-webp
npm http GET https://registry.npmjs.org/read-chunk
npm http 304 https://registry.npmjs.org/bin-build
npm http 304 https://registry.npmjs.org/bin-wrapper
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/is-gif
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/tempfile
npm http 304 https://registry.npmjs.org/is-jpg
npm http 304 https://registry.npmjs.org/is-jxr
npm http 304 https://registry.npmjs.org/is-png
npm http 304 https://registry.npmjs.org/is-webp
npm http 304 https://registry.npmjs.org/is-tif
npm http 304 https://registry.npmjs.org/is-bmp
npm http 304 https://registry.npmjs.org/is-psd
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/bin-check
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/find-file
npm http 304 https://registry.npmjs.org/read-chunk
npm http GET https://registry.npmjs.org/strip-ansi
npm http GET https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/bin-check
npm http 304 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/find-file
npm http 304 https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/executable
npm http 304 https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/get-stdin
npm http GET https://registry.npmjs.org/get-urls
npm http GET https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/executable
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/each-async
npm http 304 https://registry.npmjs.org/get-stdin
npm http 304 https://registry.npmjs.org/through2
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/decompress
npm http 304 https://registry.npmjs.org/get-urls
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/adm-zip
npm http GET https://registry.npmjs.org/map-key
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/extname
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/xtend
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/map-key
npm http 304 https://registry.npmjs.org/adm-zip
npm http 304 https://registry.npmjs.org/xtend
npm http 304 https://registry.npmjs.org/stream-combiner
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/extname
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/ext-list
npm http GET https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/duplexer
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/object-keys
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/ext-list
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/duplexer
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/object-keys
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5

> gifsicle@0.1.6 postinstall d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle
> node index.js

✗ pre-build test failed, compiling from source...

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Invalid protocol: 172.27.171.91:
    at Request.self._buildRequest (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\request\request.js:337:53)
    at Request.init (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\request\request.js:504:10)
    at new Request (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\request\request.js:97:8)
    at request (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\request\index.js:54:11)
    at Function.request.get (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\request\index.js:119:27)
    at d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\index.js:48:23
    at each (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\node_modules\each-async\each-async.js:63:4)
    at module.exports (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\node_modules\download\index.js:33:5)
    at BinBuild.build (d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-build\index.js:87:5)
    at d:\Project\node_modules\imagemin-gifsicle\node_modules\gifsicle\index.js:39:20
npm ERR! gifsicle@0.1.6 postinstall: `node index.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the gifsicle@0.1.6 postinstall script.
npm ERR! This is most likely a problem with the gifsicle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls gifsicle
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "imagemin-gifsicle"
npm ERR! cwd d:\Project\
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     d:\Project\npm-debug.log
npm ERR! not ok code 0

ashwinh@ASHWINH-W7 /d/Project/
$

I think, this might we a network environment issue. But i am able to download other npms.

Thanks

@Danilux
Copy link
Author

Danilux commented Jul 1, 2014

Thanks @kevva I tried installing manually but errors continue, I have installed other modules without problems so it's not the network, I think it could be that I'm on windows?

npm http GET https://registry.npmjs.org/imagemin-gifsicle
npm http 200 https://registry.npmjs.org/imagemin-gifsicle
npm http GET https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-0.
1.1.tgz
npm http 200 https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-0.
1.1.tgz
npm http GET https://registry.npmjs.org/gifsicle
npm http GET https://registry.npmjs.org/exec-buffer
npm http GET https://registry.npmjs.org/image-type
npm http 200 https://registry.npmjs.org/gifsicle
npm http GET https://registry.npmjs.org/gifsicle/-/gifsicle-0.1.6.tgz
npm http 200 https://registry.npmjs.org/exec-buffer
npm http GET https://registry.npmjs.org/exec-buffer/-/exec-buffer-0.1.1.tgz
npm http 200 https://registry.npmjs.org/gifsicle/-/gifsicle-0.1.6.tgz
npm http 200 https://registry.npmjs.org/exec-buffer/-/exec-buffer-0.1.1.tgz
npm http 200 https://registry.npmjs.org/image-type
npm http GET https://registry.npmjs.org/image-type/-/image-type-0.1.4.tgz
npm http 200 https://registry.npmjs.org/image-type/-/image-type-0.1.4.tgz
npm http GET https://registry.npmjs.org/is-jxr
npm http GET https://registry.npmjs.org/is-png
npm http GET https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/is-psd
npm http GET https://registry.npmjs.org/is-webp
npm http GET https://registry.npmjs.org/is-bmp
npm http GET https://registry.npmjs.org/is-tif
npm http GET https://registry.npmjs.org/bin-build
npm http GET https://registry.npmjs.org/is-gif
npm http GET https://registry.npmjs.org/is-jpg
npm http GET https://registry.npmjs.org/bin-wrapper
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/read-chunk
npm http 200 https://registry.npmjs.org/is-png
npm http GET https://registry.npmjs.org/is-png/-/is-png-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-jxr
npm http GET https://registry.npmjs.org/is-jxr/-/is-jxr-0.1.1.tgz
npm http 200 https://registry.npmjs.org/tempfile
npm http GET https://registry.npmjs.org/tempfile/-/tempfile-0.1.3.tgz
npm http 200 https://registry.npmjs.org/is-webp
npm http GET https://registry.npmjs.org/is-webp/-/is-webp-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-bmp
npm http GET https://registry.npmjs.org/is-bmp/-/is-bmp-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-psd
npm http 200 https://registry.npmjs.org/is-tif
npm http GET https://registry.npmjs.org/is-psd/-/is-psd-0.1.1.tgz
npm http GET https://registry.npmjs.org/is-tif/-/is-tif-0.1.1.tgz
npm http 200 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz
npm http 200 https://registry.npmjs.org/bin-build
npm http GET https://registry.npmjs.org/bin-build/-/bin-build-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-gif
npm http GET https://registry.npmjs.org/is-gif/-/is-gif-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-jpg
npm http GET https://registry.npmjs.org/is-jpg/-/is-jpg-0.1.2.tgz
npm http 200 https://registry.npmjs.org/chalk
npm http 200 https://registry.npmjs.org/read-chunk
npm http 200 https://registry.npmjs.org/is-jxr/-/is-jxr-0.1.1.tgz
npm http GET https://registry.npmjs.org/read-chunk/-/read-chunk-0.1.0.tgz
npm http 200 https://registry.npmjs.org/is-png/-/is-png-0.1.1.tgz
npm http 200 https://registry.npmjs.org/bin-wrapper
npm http GET https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-0.3.4.tgz
npm http 200 https://registry.npmjs.org/tempfile/-/tempfile-0.1.3.tgz
npm http 200 https://registry.npmjs.org/is-psd/-/is-psd-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-tif/-/is-tif-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-bmp/-/is-bmp-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-webp/-/is-webp-0.1.1.tgz
npm http 200 https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz
npm http 200 https://registry.npmjs.org/bin-build/-/bin-build-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-gif/-/is-gif-0.1.1.tgz
npm http 200 https://registry.npmjs.org/is-jpg/-/is-jpg-0.1.2.tgz
npm http GET https://registry.npmjs.org/uuid
npm http 200 https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-0.3.4.tgz
npm http 200 https://registry.npmjs.org/read-chunk/-/read-chunk-0.1.0.tgz
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/bin-check
npm http GET https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/find-file
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/strip-ansi
npm http 200 https://registry.npmjs.org/bin-check
npm http GET https://registry.npmjs.org/bin-check/-/bin-check-0.1.5.tgz
npm http 200 https://registry.npmjs.org/find-file
npm http GET https://registry.npmjs.org/find-file/-/find-file-0.1.4.tgz
npm http 200 https://registry.npmjs.org/download
npm http GET https://registry.npmjs.org/download/-/download-0.1.17.tgz
npm http 200 https://registry.npmjs.org/download
npm http 304 https://registry.npmjs.org/has-color
npm http 200 https://registry.npmjs.org/strip-ansi
npm http 200 https://registry.npmjs.org/uuid
npm http GET https://registry.npmjs.org/uuid/-/uuid-1.4.1.tgz
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 200 https://registry.npmjs.org/bin-check/-/bin-check-0.1.5.tgz
npm http 200 https://registry.npmjs.org/find-file/-/find-file-0.1.4.tgz
npm http 200 https://registry.npmjs.org/download/-/download-0.1.17.tgz
npm http GET https://registry.npmjs.org/executable
npm http GET https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/get-stdin
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/get-urls
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/through2
npm http 200 https://registry.npmjs.org/uuid/-/uuid-1.4.1.tgz
npm ERR! Error: UNKNOWN, open 'C:\Users\Danilux\AppData\Roaming\npm-cache\uuid\1
.4.1\package\package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "imagemin-gifsicle"
npm ERR! cwd E:\Dropbox\Coding\Proyects\portfolio
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path C:\Users\Danilux\AppData\Roaming\npm-cache\uuid\1.4.1\package\pack
age.json
npm ERR! code UNKNOWN
npm ERR! errno -1
npm http 200 https://registry.npmjs.org/executable
npm http GET https://registry.npmjs.org/executable/-/executable-0.1.2.tgz
npm http 200 https://registry.npmjs.org/each-async
npm http GET https://registry.npmjs.org/each-async/-/each-async-0.1.3.tgz
npm http 200 https://registry.npmjs.org/get-urls
npm http GET https://registry.npmjs.org/get-urls/-/get-urls-0.1.2.tgz
npm http 200 https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/nopt/-/nopt-2.2.1.tgz
npm http 200 https://registry.npmjs.org/get-stdin
npm http 304 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/get-stdin/-/get-stdin-0.1.0.tgz
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/decompress
npm http GET https://registry.npmjs.org/decompress/-/decompress-0.2.4.tgz
npm http 200 https://registry.npmjs.org/through2
npm http 200 https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/executable/-/executable-0.1.2.tgz
npm http GET https://registry.npmjs.org/request/-/request-2.36.0.tgz
npm http 200 https://registry.npmjs.org/each-async/-/each-async-0.1.3.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/get-urls/-/get-urls-0.1.2.tgz
npm http 200 https://registry.npmjs.org/decompress/-/decompress-0.2.4.tgz
npm http 200 https://registry.npmjs.org/nopt/-/nopt-2.2.1.tgz
npm http 200 https://registry.npmjs.org/request/-/request-2.36.0.tgz
npm http 200 https://registry.npmjs.org/get-stdin/-/get-stdin-0.1.0.tgz

@Sawtaytoes
Copy link

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: Comes bundled with the following optimizers:. Is this assumption wrong?

@kevva
Copy link
Member

kevva commented Sep 21, 2014

You probably have to run npm cache clean.

@trevordmiller
Copy link

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 install, I get a few warnings:

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?

@trevordmiller
Copy link

As @Saturn2888 mentioned, adding the dependencies manually in the package.json works:

        "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 npm install after updating your package.json.

@albertpeiro
Copy link

No luck @trevordmiller. Trying to deploy to Heroku and breaking for the same reason. Will try your fix.

@Sawtaytoes
Copy link

You might need to also add pngquant to the list.

What's the error you're getting @albertpeiro?

@albertpeiro
Copy link

@Saturn2888

Loading "imagemin.js" tasks...ERROR

Error: Cannot find module 'imagemin-gifsicle'
Warning: Task "imagemin" not found. Use --force to continue.

@albertpeiro
Copy link

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.

@Sawtaytoes
Copy link

And you tried doing npm install imagemin-gifsicle --save-dev?

@albertpeiro
Copy link

Yes I have tried this too. My heroku buildpack is node 0.10.32, npm 1.4.24.
I've added as well npm cache cleaning prior to installation and npm -v to
check this things well.

On 3 October 2014 02:08, Saturn2888 notifications@github.com wrote:

And you tried doing npm install imagemin-gifsicle --save-dev?


Reply to this email directly or view it on GitHub
#228 (comment)
.

Albert Peiró

@janhoogeveen
Copy link

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:
That didn't help at all. Still getting the following error.

Error: Cannot find module 'imagemin-jpegtran'

@Danilux
Copy link
Author

Danilux commented Oct 14, 2014

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.

@getuliojr
Copy link

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.

@kevva
Copy link
Member

kevva commented Nov 1, 2014

This should be fixed. It was caused by a nested dependency using git remotes which made npm freak out.

@kevva kevva closed this as completed Nov 1, 2014
@seanrowe
Copy link

seanrowe commented Nov 1, 2014

I'm seeing this when I try to install in ubuntu using sudo npm install -g imagemin-gifsicle

gifsicle@2.0.0 postinstall /usr/local/lib/node_modules/imagemin-gifsicle/node_modules/gifsicle
node lib/install.js

path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at exports.join (path.js:358:36)
at Object.exports.json (/usr/local/lib/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/rc/lib/utils.js:21:24)
at module.exports (/usr/local/lib/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/rc/index.js:35:21)
at Object. (/usr/local/lib/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/index.js:5:25)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 8
npm ERR! not ok code 0

@kevva
Copy link
Member

kevva commented Nov 1, 2014

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

@madhead
Copy link

madhead commented Dec 15, 2014

Had the same issue. Didn't want to add dependencies to root package.json. What helped for me is to go to .\node_modules\grunt-contrib-imagemin\node_modules\imagemin\ and run npm install inside it. Magic.

@sethlivingston
Copy link

@madhead that worked for me, thank you!

@arafath-mk
Copy link

I had same issue. It is solved when "grunt-contrib-imagemin" version is changed as below. (in the root package.json)
"grunt-contrib-imagemin": "^0.9.2"

@kaelle
Copy link

kaelle commented Jan 6, 2015

@madhead that worked for me as well, thanks!

@wutangpaul
Copy link

@madhead Thanks for the fix.

@lremurphy
Copy link

@madhead Thank you so much this worked for me as well

@gruntjs gruntjs locked and limited conversation to collaborators Feb 12, 2015
jegtnes pushed a commit to jegtnes/jegtnes-theme that referenced this issue May 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests