pngquant not found #4421

Closed
Jaspur opened this Issue Jan 5, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@Jaspur

Jaspur commented Jan 5, 2014

What am I doing wrong? It doesn't work on my Vagrant VM, but it does on my live VPS.

npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp

> pngquant-bin@0.1.5 postinstall /var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin
> node lib/check.js


/var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/which/which.js:83
  throw new Error("not found: "+cmd)
        ^
Error: not found: pngquant
    at Function.whichSync [as sync] (/var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/which/which.js:83:9)
    at BinWrapper._path (/var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:148:19)
    at new BinWrapper (/var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:29:22)
    at Object.<anonymous> (/var/www/node_modules/grunt-contrib-imagemin/node_modules/pngquant-bin/lib/pngquant.js:30:11)
    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)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
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/block-stream
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/graceful-fs
npm ERR! Error: ENOENT, open '/var/www/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/src/object/size.js'
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/isaacs/npm/issues>

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-y" "grunt-contrib-imagemin" "--save-dev"
npm ERR! cwd /var/www
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path /var/www/node_modules/grunt-contrib-imagemin/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/mout/src/object/size.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! pngquant-bin@0.1.5 postinstall: `node lib/check.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the pngquant-bin@0.1.5 postinstall script.
npm ERR! This is most likely a problem with the pngquant-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/check.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls pngquant-bin
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-y" "grunt-contrib-imagemin" "--save-dev"
npm ERR! cwd /var/www
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
^[[1;2Dnpm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/npm-debug.log
npm ERR! not ok code 0
@timoxley

This comment has been minimized.

Show comment Hide comment
@timoxley

timoxley Jan 7, 2014

Member

@Jaspur This doesn't look like an issue with npm itself, more likely a problem with node-pngquant-bin or perhaps a permissions issue on your vagrant vm. Perhaps close this issue and try get help on node-pngquant-bin.

#4430

Member

timoxley commented Jan 7, 2014

@Jaspur This doesn't look like an issue with npm itself, more likely a problem with node-pngquant-bin or perhaps a permissions issue on your vagrant vm. Perhaps close this issue and try get help on node-pngquant-bin.

#4430

@Jaspur Jaspur referenced this issue in imagemin/pngquant-bin Jan 7, 2014

Closed

gruntjs/grunt-contrib-imagemin; pngquant not found #18

@domenic domenic closed this Jan 11, 2014

@domenic

This comment has been minimized.

Show comment Hide comment
@domenic

domenic Jan 11, 2014

Member

Indeed, it sounds like one of your machines has a pngquant executable in its PATH, whereas the other does not.

Member

domenic commented Jan 11, 2014

Indeed, it sounds like one of your machines has a pngquant executable in its PATH, whereas the other does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment