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

not compatible with node v6 #7

Open
wasap opened this issue Nov 16, 2016 · 7 comments
Open

not compatible with node v6 #7

wasap opened this issue Nov 16, 2016 · 7 comments

Comments

@wasap
Copy link

wasap commented Nov 16, 2016

[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

@tomhatzer
Copy link

tomhatzer commented Nov 18, 2016

When trying to fix this, #6 will happen.

@firetix
Copy link
Owner

firetix commented Nov 21, 2016

Thanks @tomhatzer I'll take a look

@tomgreenhill
Copy link

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!

@matfricker
Copy link

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));

@khaledosman
Copy link

Any updates on this?

@jdunk
Copy link

jdunk commented May 30, 2017

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

See this comment: imagemin/imagemin#228 (comment)

@firetix
Copy link
Owner

firetix commented Jan 29, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants