imagemin / imagemin-optipng

optipng plugin for imagemin
MIT License
163 stars 36 forks source link

issues on Ubuntu #2

Closed jcsrb closed 10 years ago

jcsrb commented 10 years ago

having

$ optipng -v
OptiPNG version 0.7.4
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:        13.10
Codename:       saucy
$ node -v
v0.10.28

npm test fails like this

selection_094

kevva commented 10 years ago

What does console.log(require('optipng-bin').path) give you?

jcsrb commented 10 years ago
> console.log(require('optipng-bin').path)
/home/jakob/Dropbox/_OpenSourcePlayground/imagemin-optipng/node_modules/optipng-bin/vendor/optipng
kevva commented 10 years ago

But there's no binary in that folder, right? Check which version of bin-wrapper that's installed too.

jcsrb commented 10 years ago

yes, no binary and there is not even a vendor folder, when I copy the binary over things work

kevva commented 10 years ago

Could you check which version of bin-wrapper that's installed?

jcsrb commented 10 years ago
 npm list | grep bin-wrapper
│ │   ├─┬ bin-wrapper@0.2.4
│ │   ├─┬ bin-wrapper@0.2.4
│ │   ├─┬ bin-wrapper@0.3.2
  ├─┬ bin-wrapper@0.3.2
kevva commented 10 years ago

@jcsrb, try now! Should be fixed in https://github.com/kevva/bin-wrapper/commit/da7fe8b87a0aa31953a3fb5aa2aedf6bcaddcf14.

jcsrb commented 10 years ago

thank you, after updating bin-wrapper to 0.3.4 everything works