Open Beanow opened 7 years ago
As a workaround I used this in linux to fake the name.
sudo ln -s /usr/local/lib/node_modules/giflossy/cli.js /usr/local/bin/gifsicle
I have no idea of the issue.
The problem is you're using spawn
to detect the dependency. So if gifsicle
is not an executable that has a --lossy
param in it's usage string, it will give either error. Because npm install -g giflossy
does not give you a gifsicle
executable, but giflossy
you can't use it as a drop-in replacement. You would need to detect which of the two is available.
I think we are fine asking for a non-npm installation of giflossy. Also I have high hopes lossy will be part of gifsicle, soon.
If you want to add that check, accepting PRs still
Still no giflossy in Ubuntu 2019.04's gifsicle.
just ran into same thing
Still no giflossy in Ubuntu 2019.04's gifsicle.
Same in Linux Mint 19.3 - gifsicle version 1.91, while current-one is 1.92. Maybe it is worth to ping debian package maintainer? nwm, debian buster has got version 1.92, so next iteration of debian-based distros will contain it by default.
The problem is you're using
spawn
to detect the dependency. So ifgifsicle
is not an executable that has a--lossy
param in it's usage string, it will give either error. Becausenpm install -g giflossy
does not give you agifsicle
executable, butgiflossy
you can't use it as a drop-in replacement. You would need to detect which of the two is available.
After installation of giflossy via npm globally I have got gifsicle soft link. If there is no gifsicle executable Beanow solution will work for sure.
When installing giflossy it says:
When installing gifsicle it say:
Using cli interface and global installs.