gulp-image-optimization icon indicating copy to clipboard operation
gulp-image-optimization copied to clipboard

not compatible with node v6

Open wasap opened this issue 8 years ago • 7 comments

[email protected] postinstall /Users/vasap/proj/node_modules/gifsicle node index.js

path.js:7 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/gifsicle-bin/v0.1.7/vendor/osx/gifsicle', name: 'gifsicle', os: 'darwin' } at assertPath (path.js:7:11) at Object.basename (path.js:1355:5) at /Users/vasap/proj/node_modules/download/index.js:35:43 at each (/Users/vasap/proj/node_modules/each-async/each-async.js:63:4) at module.exports (/Users/vasap/proj/node_modules/download/index.js:33:5) at /Users/vasap/proj/node_modules/bin-wrapper/index.js:108:20 at /Users/vasap/proj/node_modules/bin-wrapper/index.js:141:24 at /Users/vasap/proj/node_modules/bin-check/index.js:30:20 at /Users/vasap/proj/node_modules/executable/index.js:39:20 at FSReqWrap.oncomplete (fs.js:123:15)

[email protected] postinstall /Users/vasap/proj/node_modules/jpegtran-bin node index.js

[email protected] postinstall /Users/vasap/proj/node_modules/optipng-bin node index.js

path.js:7 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/optipng-bin/v0.3.11/vendor/osx/optipng', name: 'optipng', os: 'darwin' } at assertPath (path.js:7:11) at Object.basename (path.js:1355:5) at /Users/vasap/proj/node_modules/download/index.js:35:43 at each (/Users/vasap/proj/node_modules/each-async/each-async.js:63:4) at module.exports (/Users/vasap/proj/node_modules/download/index.js:33:5) at /Users/vasap/proj/node_modules/bin-wrapper/index.js:108:20 at /Users/vasap/proj/node_modules/bin-wrapper/index.js:141:24 at /Users/vasap/proj/node_modules/bin-check/index.js:30:20 at /Users/vasap/proj/node_modules/executable/index.js:39:20 at FSReqWrap.oncomplete (fs.js:123:15) [email protected] /Users/vasap/proj

wasap avatar Nov 16 '16 10:11 wasap

When trying to fix this, #6 will happen.

tomhatzer avatar Nov 18 '16 14:11 tomhatzer

Thanks @tomhatzer I'll take a look

firetix avatar Nov 21 '16 18:11 firetix

Getting the same issue. Not in any way shape or form hassling (!) but, I was wondering if you had any news on this @firetix? Only so as I can explore alternatives if needs be.

Seems to me that [email protected] / [email protected] etc are out of date? Or I am way off the mark? Thanks in advance!

tomgreenhill avatar Jan 24 '17 15:01 tomgreenhill

I am having the same issue on node v6.10.0:

  • gifsicle
  • jpegtran-bin
  • optipng-bin

Error: throw new TypeError('Path must be a string. Received ' + inspect(path));

matfricker avatar Mar 01 '17 16:03 matfricker

Any updates on this?

khaledosman avatar Mar 28 '17 09:03 khaledosman

Is this possibly just a matter of switching from image-min to imagemin ?

See this comment: https://github.com/imagemin/imagemin/issues/228#issuecomment-304835814

jdunk avatar May 30 '17 11:05 jdunk

I did switch image-min to imagemin. @jdunk you can see on the https://github.com/imagemin/imagemin repository that they don't support v6 of node. if you guys have another solution let me know

firetix avatar Jan 29 '18 18:01 firetix