Giter VIP home page Giter VIP logo

pngquant-bin's Introduction

pngquant-bin GitHub Actions Status

pngquant is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format

You probably want imagemin-pngquant instead.

Install

npm install pngquant-bin

Make sure you have the correct version of libimagequant.

# via Homebrew for macOS
brew install libimagequant

# via apt-get for Debian distributions
sudo apt-get install libimagequant-dev

Usage

import {execFile} from 'node:child_process';
import pngquant from 'pngquant-bin';

execFile(pngquant, ['-o', 'output.png', 'input.png'], error => {
	console.log('Image minified!');
});

CLI

npm install --global pngquant-bin
pngquant --help

Updating pre-compiled binaries

The Linux binaries are statically linked so they should work on all Linux distributions. To recompile them:

  1. sudo apt-get install libpng-dev
  2. ./configure CFLAGS=-static && make && cp pngquant pngquant-64
  3. Repeat the above commands, but in a 32-bin docker container started with: docker run -ti -v pwd:/source i386/debian:9.3 bash

pngquant-bin's People

Contributors

1000ch avatar atma avatar corpulentcoffee avatar kevcenteno avatar kevva avatar kornelski avatar lok-soft avatar mnpenner avatar nervo avatar romainmenke avatar shinnn avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pngquant-bin's Issues

Can't install on windows 8.1

c:\wamp\appdir>npm install pngquant-bin --save
npm WARN package.json path@0.11.14 path is also the name of a node core module
> spawn-sync@1.0.11 postinstall c:\wamp\appdir\node_modules\pngquant-bin\node_
dules\bin-wrapper\node_modules\bin-check\node_modules\spawn-sync
> node postinstall
> pngquant-bin@3.0.0 postinstall c:\wamp\appdir\node_modules\pngquant-bin
> node lib/install.js
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "node" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\n
\\bin\\npm-cli.js" "install" "pngquant-bin" "--save"
npm ERR! node v0.12.1
npm ERR! npm  v2.8.4
npm ERR! code ELIFECYCLE
npm ERR! pngquant-bin@3.0.0 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pngquant-bin@3.0.0 postinstall script 'node lib/install
s'.
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/install.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! Please include the following file with any support request:
npm ERR!     c:\wamp\appdir\npm-debug.log

Anything I can do from my side to fix it?

Linux dependencies

Turns out Linux doesn't come with all the required dependencies to compile (which is why Travis is failing), namely libpng-dev and zlib1g-dev. Even though they can be easily installed through apt-get I would prefer not to impose any manual steps as this module will be used as a deep dependency.

I'm going to add precompiled binaries, but as we've experienced before, that doesn't work on every distro.

Any ideas? I'm not a Linux user.

// @passy @kevva @Badunk

Installation error on linux

When doing npm install pngquant-bin on linux I see npm fetching the dependencies. Then suddenly the screen is cleared and the following shows:

  0 passing (6 seconds)
  4 failing

  1) pngquant should return path to pngquant binary:
     Error: timeout of 2000ms exceeded
      at Object.<anonymous> (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.list.ontimeout (timers.js:101:19)

  2) pngquant should successfully proxy pngquant:
     Error: timeout of 2000ms exceeded
      at Object.<anonymous> (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.list.ontimeout (timers.js:101:19)

  3) pngquant should minify a .png:
     Error: timeout of 2000ms exceeded
      at Object.<anonymous> (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.list.ontimeout (timers.js:101:19)

  4) pngquant "after all" hook:
     Error: ENOENT, no such file or directory 'test/fixtures/test-fs8.png'
      at Object.fs.unlinkSync (fs.js:582:18)
      at Context.binPath (/home/munter/git/node-pngquant/node_modules/pngquant-bin/test/test-path.js:10:6)
      at Hook.Runnable.run (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runnable.js:211:32)
      at next (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runner.js:246:10)
      at Runner.hook (/home/munter/git/node-pngquant/node_modules/pngquant-bin/node_modules/mocha/lib/runner.js:258:5)
      at process.startup.processNextTick.process._tickCallback (node.js:245:9)



✗ pre-build test failed, compiling from source...
Downloading 1.8.4.tar.gz: 86%
✓ pngquant rebuilt successfully

The process doesn't end.

Then my chrome tabs start dying, fans start spinning, and ps reveals that hundreds of threads are all doing this:

munter   15722  0.0  0.2 590324 10972 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15724  0.0  0.2 655860 10980 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15726  0.0  0.2 590324 10972 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant /home/munter/git/node-pngquant/node_modules/pngquant-bin/test/fixtures/test.png
munter   15728  0.0  0.2 655200 10664 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15730  0.0  0.2 590324 10976 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15732  0.0  0.2 590324 10968 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant /home/munter/git/node-pngquant/node_modules/pngquant-bin/test/fixtures/test.png
munter   15734  0.0  0.2 590324 10968 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15736  0.0  0.2 590324 10976 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15738  0.0  0.2 590324 10968 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant /home/munter/git/node-pngquant/node_modules/pngquant-bin/test/fixtures/test.png
munter   15740  0.0  0.2 590324 10976 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15742  0.0  0.2 655200 10664 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant --version -
munter   15744  0.0  0.2 590324 10972 pts/0    Sl+  21:26   0:00 node /home/munter/git/node-pngquant/node_modules/.bin/pngquant /home/munter/git/node-pngquant/node_modules/pngquant-bin/test/fixtures/test.png

Why version 2.4.1 (April 2015)?

When I install pngquant-bin on Ubuntu 14.04 with:

$ npm install --save pngquant-bin

why do I get an old version of pngquant?

$ pngquant --version
2.4.1 (April 2015)

Allow to use the system pngquant

I have a FreeBSD server that could make use of your package with pngquant in my path. It would be cool if the package could find it & use it as a last resource.

Right now I'm stuck and can't use this package because it's only using its internal version of it and it won't build it (though I suppose it could provided the proper options).

Freezes on `npm install`

When running npm install pngquant-bin it freezes on node lib/check.js. This happens on the other binary wrappers too so it's probably tied to bin-wrapper.

@sindresorhus, any idea?

Tunneling socket could not be established

Hi guys, any idea on why this happens?

> [email protected] postinstall /jenkins/workspace/package-nemesis/assets/node_modules/pngquant-bin
> node lib/install.js

  ⚠ tunneling socket could not be established, cause=connect EINVAL 0.0.12.56:80 - Local (0.0.0.0:0)
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ RequestError: pngquant failed to build, make sure that libpng-dev is installed
    at ClientRequest.<anonymous> (/jenkins/workspace/package-nemesis/assets/node_modules/got/index.js:69:21)
    at ClientRequest.g (events.js:273:16)
    at emitOne (events.js:90:13)
    at ClientRequest.emit (events.js:182:7)
    at ClientRequest.onError (/jenkins/workspace/package-nemesis/assets/node_modules/tunnel-agent/index.js:178:21)
    at ClientRequest.g (events.js:273:16)
    at emitOne (events.js:90:13)
    at ClientRequest.emit (events.js:182:7)
    at Socket.socketErrorListener (_http_client.js:295:9)
    at emitOne (events.js:90:13)

Segmentation error

I'm getting segmentation error on OS X 10.7 on the pngquant file that is compiled when I run npm install, but the one in the compiled pngquant file tmpdir works.

  1. The compiled file is placed directly in vendor/ and not `vendor/osx/``
  2. Why are there two pngquant files, and the one in tmpdir is 75% smaller?

// @kevva

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

I remove my C:\dev\anglemine\node_modules folder (where anglemine is my project name), try to reinstall all modules with npm install and got an error.
Also there is no npm-debug.log to attach.


> [email protected] postinstall C:\dev\anglemine\node_modules\pngquant-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 { name: 'pngquant.exe',
  url: 'https://raw.github.com/sindresorhus/node-pngquant-bin/v0.1.7/vendor/win/pngquant.exe' }
    at assertPath (path.js:7:11)
    at Object.basename (path.js:801:5)
    at C:\dev\anglemine\node_modules\download\index.js:35:43
    at each (C:\dev\anglemine\node_modules\each-async\each-async.js:63:4)
    at module.exports (C:\dev\anglemine\node_modules\download\index.js:33:5)
    at BinWrapper._download (C:\dev\anglemine\node_modules\pngquant-bin\node_modules\bin-wrapper\index.js:283:14)
    at BinWrapper.check (C:\dev\anglemine\node_modules\pngquant-bin\node_modules\bin-wrapper\index.js:75:10)
    at C:\dev\anglemine\node_modules\pngquant-bin\index.js:27:5
    at FSReqWrap.cb [as oncomplete] (fs.js:251:19)
- optipng-bin node_modules\grunt-contrib-imagemin\node_modules\optipng-bin
- log-symbols node_modules\grunt-contrib-imagemin\node_modules\optipng-bin\node_modules\log-symbols
- chalk node_modules\grunt-contrib-imagemin\node_modules\optipng-bin\node_modules\log-symbols\node_modules\chalk
- strip-ansi node_modules\grunt-contrib-imagemin\node_modules\optipng-bin\node_modules\log-symbols\node_modules\chalk\node_modules\strip-ansi

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs pngquant-bin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls pngquant-bin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\dev\anglemine\npm-debug.log

install fails

I'm able to install on my local Mac but not on Ubuntu server, both with Node 0.10.26 and NPM 1.4.3 --any suggestions please. I am running $sudo npm install and i have full permissions.

[email protected] postinstall /opt/web/static-test/node_modules/imagemin-pngquant/node_modules/pngquant-bin

node lib/install.js

module.js:340
throw err;
^
Error: Cannot find module 'through2'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/opt/web/static-test/node_modules/gulp-sourcemaps/index.js:2:15)
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)
npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the pngquant-bin package,
npm ERR! not with npm itself.

---- and the debug log

47159 info [email protected] Failed to exec postinstall script
47160 info /opt/web/static-test/node_modules/imagemin-pngquant/node_modules/pngquant-bin unbuild
47161 info preuninstall [email protected]
47162 info uninstall [email protected]
47163 verbose false,/opt/web/static-test/node_modules,/opt/web/static-test/node_modules/imagemin-pngquant/node_mod$
47164 verbose /opt/web/static-test/node_modules/imagemin-pngquant/node_modules/.bin,[object Object] binRoot
47165 info postuninstall [email protected]
47166 verbose about to build /opt/web/static-test/node_modules/imagemin-pngquant
47167 info /opt/web/static-test/node_modules/imagemin-pngquant unbuild
47168 info preuninstall [email protected]
47169 info uninstall [email protected]
47170 verbose true,/opt/web/static-test/node_modules,/opt/web/static-test/node_modules unbuild imagemin-pngquant@4$
47171 info postuninstall [email protected]
47172 error [email protected] postinstall: node lib/install.js
47172 error Exit status 8
47173 error Failed at the [email protected] postinstall script.

Don't support node_modules as symbolic link

This one was hard to find :)
We had some several issues when deploying our applications via capistrano, and found only today the origin.

Easy to reproduce:

$ mkdir test
$ ln -s test node_modules
$ npm install pngquant-bin

Now, admire your process list, full of respawned

test/pngquant-bin/vendor/pngquant --version

Watch your memory growing, watch your swap growing, and cry...

Btw, it seems that this package is not the only one to have this bug, and i suspect a sub dependency, or a behavior shared between other packages.

But, hey, we need to start somewhere :)

alpine-node:4, npm install > Error: not implemented

> [email protected] postinstall /tmp/git-resource-destination.JfGPDb/node_modules/pngquant-bin
> node lib/install.js

/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_transform.js:159
  throw new Error('not implemented');
  ^

Error: not implemented
    at Transform._transform (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_transform.js:159:9)
    at Transform._read (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Transform._write (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_writable.js:238:10)
    at writeOrBuffer (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_writable.js:228:5)
    at Transform.Writable.write (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_writable.js:195:11)
    at write (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_readable.js:605:24)
    at flow (/tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_readable.js:614:7)
    at /tmp/git-resource-destination.JfGPDb/node_modules/readable-stream/lib/_stream_readable.js:582:7
    at nextTickCallbackWith0Args (node.js:436:9)

version in npm package

I'm using pngquant in my node.js app on ubuntu (cloud 9 / heroku) via the npm package at https://www.npmjs.com/package/pngquant-bin.

But I note that the resulting pngquant binary is only 2.4.1 (April 2015). Why is that, and how do I use the most recent version of pngquant (in a node.js app) on the ubuntu platform?

Inconsist binary version across different OS

Is there a plan to update Linux & Windows binary version to keep consist with MacOs?
I am using Mac for development but production environment is Ubuntu, the version difference (using different libpng) gives me different compressed result.

Thanks,
Alex

Failed to npm install with 0.1.3 (Mac 10.8.3)

I've already done an npm cache clean and tried to install. I get the following errors:

> [email protected] postinstall /private/tmp/pngqtest/node_modules/pngquant-bin
> node lib/check.js

Downloading pngquant: 14%

  0 passing (296ms)
  4 failing

  1) pngquant should return path to pngquant binary:
     Uncaught
  AssertionError: false == true
      at args (/private/tmp/pngqtest/node_modules/pngquant-bin/test/test-path.js:17:4)
      at ChildProcess.exithandler (child_process.js:540:7)
      at ChildProcess.EventEmitter.emit (events.js:91:17)
      at maybeClose (child_process.js:634:16)
      at Socket.ChildProcess.spawn.stdin (child_process.js:806:11)
      at Socket.EventEmitter.emit (events.js:88:17)
      at Socket._destroy.destroyed (net.js:356:10)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

  2) pngquant should successfully proxy pngquant:
     Uncaught
  AssertionError: false == true
      at args (/private/tmp/pngqtest/node_modules/pngquant-bin/test/test-path.js:26:4)
      at ChildProcess.exithandler (child_process.js:534:7)
      at ChildProcess.EventEmitter.emit (events.js:91:17)
      at maybeClose (child_process.js:634:16)
      at Socket.ChildProcess.spawn.stdin (child_process.js:806:11)
      at Socket.EventEmitter.emit (events.js:88:17)
      at Socket._destroy.destroyed (net.js:356:10)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

  3) pngquant should minify a .png:
     Uncaught Error: ENOENT, no such file or directory 'test/fixtures/test-fs8.png'
      at Object.fs.statSync (fs.js:524:18)
      at /private/tmp/pngqtest/node_modules/pngquant-bin/test/test-path.js:38:20
      at ChildProcess.exithandler (child_process.js:534:7)
      at ChildProcess.EventEmitter.emit (events.js:91:17)
      at maybeClose (child_process.js:634:16)
      at Socket.ChildProcess.spawn.stdin (child_process.js:806:11)
      at Socket.EventEmitter.emit (events.js:88:17)
      at Socket._destroy.destroyed (net.js:356:10)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

  4) pngquant "after all" hook:
     Error: ENOENT, no such file or directory 'test/fixtures/test-fs8.png'
      at Object.fs.unlinkSync (fs.js:582:18)
      at Context.binPath (/private/tmp/pngqtest/node_modules/pngquant-bin/test/test-path.js:10:6)
      at Hook.Runnable.run (/private/tmp/pngqtest/node_modules/pngquant-bin/node_modules/mocha/lib/runnable.js:211:32)
      at next (/private/tmp/pngqtest/node_modules/pngquant-bin/node_modules/mocha/lib/runner.js:246:10)
      at Runner.hook (/private/tmp/pngqtest/node_modules/pngquant-bin/node_modules/mocha/lib/runner.js:258:5)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)



✗ pre-build test failed, compiling from source...
Downloading 1.8.4.tar.gz: 100%
✗ Command failed: install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

[email protected] node_modules/pngquant-bin
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

FreeBSD x64 support

$ npm i pngquant-bin
\
> [email protected] postinstall /tmp/myproject/node_modules/pngquant-bin
> node lib/install.js

  ⚠ No binary found matching your system. It's probably not supported.
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:203:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[email protected] node_modules/pngquant-bin
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Attempting to make you a binary now, having some trouble compiling again 😧


Nevermind; builds fine with gmake.

Fail to install with: Cannot find module './src/init'

Hi, I'm seeing a consistent issue attempting to install pngquant-bin. This has only surfaced over the last day or two AFAIK.

Here is a log of it failing on OSX with node 6.2.2/npm 3.9.5 (I recorded this b/c that combination is successful in the pngquant-bin TravisCI build): https://gist.github.com/jasonm/2fb3f65f63e49030493a60ef9ded8551 It also happens on the same OSX machine with node 0.10.41/npm 2.15.11 and node 4.4.6/npm 3.10.8.

Here is a log failing on Ubuntu 14.04 / node 0.10.38 / npm 2.14.21: https://gist.github.com/jasonm/6f39fed992e357e3960eb29ed4fdbd62

Is there any other info I could provide to help isolate/repro? Thanks!

Error building on windows

Hey,
My platform

  • NPM 3.10.3
  • Node 6.3.0
  • OS Windows 7 64 bit.

I am getting below error when i am trying to install this binary.

$ npm i pngquant-bin -S
(node:1580) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

> [email protected] postinstall C:\image-minifier-sqd\node_modules\pngquant-bin
> node lib/install.js

  ‼ The `C:\image-minifier-sqd\node_modules\pngquant-bin\vendor\pngquant.exe` binary doesn't seem to work correctly
  ‼ pngquant pre-build test failed
  i compiling from source
  × Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)
[email protected] C:\image-minifier-sqd
`-- [email protected]

Unable to install on OSX

Getting this weird error:

$ npm install pngquant-bin

> [email protected] postinstall /Users/anahkiasen/Sites/madewithlove/weholi/node_modules/pngquant-bin
> node lib/install.js

  ⚠ Invalid non-string/buffer chunk
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/onetime/index.js:15
                throw new Error(fnName + ' can only be called once.');
                ^

Error: callback() can only be called once.
    at /Users/anahkiasen/Sites/madewithlove/weholi/node_modules/onetime/index.js:15:11
    at /Users/anahkiasen/Sites/madewithlove/weholi/node_modules/download/index.js:153:5
    at ConcatStream.<anonymous> (/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/concat-stream/index.js:36:43)
    at emitNone (events.js:72:20)
    at ConcatStream.emit (events.js:166:7)
    at finishMaybe (/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/readable-stream/lib/_stream_writable.js:502:14)
    at endWritable (/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/readable-stream/lib/_stream_writable.js:512:3)
    at ConcatStream.Writable.end (/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/readable-stream/lib/_stream_writable.js:477:5)
    at DuplexWrapper.onend (/Users/anahkiasen/Sites/madewithlove/weholi/node_modules/readable-stream/lib/_stream_readable.js:539:10)
    at DuplexWrapper.g (events.js:260:16)
$ node --version && npm --version
v4.2.1
3.3.9
$ which pngquant
/usr/local/bin/pngquant

ubuntu 16.10 pngquant pre-build test failed

ubuntu 16.10
npm install:

[email protected] postinstall /node_modules/pngquant-bin
node lib/install.js

⚠ The /node_modules/pngquant-bin/vendor/pngquant binary doesn't seem to work correctly
⚠ pngquant pre-build test failed
ℹ compiling from source
✖ Error: pngquant failed to build, make sure that libpng-dev is installed

at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)

And npm run dev:
error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory...
etc...

Update node modules

If you run npm outdated you will see you have quite a lot of outdated modules. Would be good to update them soon. Thx.

How to add pngquant flags?

Okay, so I'm probably missing something incredibly obvious, but how do I include pngquant flags like --nofs or --force?

Installation failure won't stop npm install

I'm not sure if this is a npm or a package problem, but a failing installation won't make npm install fail - which makes it kind of hard to debug, especially in automated build chains.

Shouldn't npm install just abort, if there is no prebuilt binary and none of the build deps are available?

{
  "private": true,
  "name": "test",
  "version": "1.0.0",
  "dependencies": {
    "pngquant-bin": "^3.1.1"
  }
}
/tmp #  npm install
> [email protected] postinstall /tmp/node_modules/pngquant-bin
> node lib/install.js

  ⚠ spawn /tmp/node_modules/pngquant-bin/vendor/pngquant ENOENT
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:213:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:827:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:486:12)
[email protected] node_modules/nsp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/pngquant-bin
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

/tmp # echo $?
0

Error detecting if "libpng-dev" is installed on Debian Wheezy

dpkg -l | grep libpng-dev shows nothing, while running yo angular from yo's tutorial where one of the dependencies is pngquant-bin I get the following:

[email protected] postinstall /home/rockj/dev/javascript/experiments/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
node index.js

✗ pre-build test failed, compiling from source...
libpng-dev is installed

{ [Error: Command failed: In file included from pngquant.c:59:0:
rwpng.h:35:57: fatal error: png.h: No such file or directory
compilation terminated.
make: *** [pngquant.o] Error 1
] killed: false, code: 2, signal: null }

[email protected] postinstall /home/rockj/dev/javascript/experiments/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
node index.js

...

Installing libpng12-dev on my Debian Wheezy seem to fix the issue.

rockj@pandora:/zedge/frontend-experiments$ dpkg -l | grep libpng-dev
rockj@pandora:
/zedge/frontend-experiments$ apt-cache show libpng-dev
N: Can't select versions from package 'libpng-dev' as it is purely virtual
N: No packages found
rockj@pandora:~/zedge/frontend-experiments$ apt-cache show libpng12-dev
Package: libpng12-dev
Source: libpng
Version: 1.2.49-1
Installed-Size: 588
Maintainer: Anibal Monsalve Salazar [email protected]
Architecture: amd64
Replaces: libpng12-0-dev, libpng3-dev (<= 1.2.5)
Provides: libpng-dev, libpng12-0-dev, libpng3-dev
Depends: libpng12-0 (= 1.2.49-1), zlib1g-dev
Conflicts: libpng-dev, libpng12-0-dev, libpng2 (<< 1.0.12-3), libpng2-dev
Description-en: PNG library - development
libpng is a library implementing an interface for reading and writing
PNG (Portable Network Graphics) format files.
.
This package contains the header and development files needed to build
programs and packages using libpng.
Homepage: http://libpng.org/pub/png/libpng.html
Description-md5: 748198d86eeddc4aa1418e7d1311203c
Tag: devel::lang:c, devel::library, implemented-in::c, role::devel-lib,
works-with::image, works-with::image:raster
Section: libdevel
Priority: optional
Filename: pool/main/libp/libpng/libpng12-dev_1.2.49-1_amd64.deb
Size: 266282
MD5sum: 67e5fe32ccad94a449bc8a871b2d73fd
SHA1: 39e7896205d7b659921e7c1c2229da13cc319967
SHA256: c8447b3606047630a16f45da23154532949feafaa5685045204e9380f645407a

rockj@pandora:~/zedge/frontend-experiments$ apt-cache policy libpng12-dev
libpng12-dev:
Installed: 1.2.49-1
Candidate: 1.2.49-1
Version table:
*** 1.2.49-1 0
500 http://ftp.no.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status

Npm is in a corrupt state

I'm not sure if this is due to 0.1.6 but it looks like npm is in a corrupt state.

Did you maybe force push the 0.1.6 tar file over the 0.1.5 tar file?

$ npm install [email protected] -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info trying registry request attempt 1 at 16:16:02
npm http GET https://registry.npmjs.org/pngquant-bin/0.1.5
npm http 200 https://registry.npmjs.org/pngquant-bin/0.1.5
npm info retry fetch attempt 1 at 16:16:03
npm http GET https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-0.1.5.tgz
npm http 200 https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-0.1.5.tgz
npm ERR! Error: shasum check failed for /var/folders/1d/8yhmvtjd1rb3lm2n7jjsg8bm0000gp/T/npm-19162-tTBh2EO3/1392308163253-0.623168958351016/tmp.tgz
npm ERR! Expected: 2a6ddfa43de542bcefd4145cc861b16d9a943443
npm ERR! Actual:   c5328643b4746f7727e520a034f635ada56db432
npm ERR!     at /usr/local/Cellar/node/0.10.20/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR!     at ReadStream.<anonymous> (/usr/local/Cellar/node/0.10.20/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR!     at ReadStream.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.20/bin/node" "/usr/local/bin/npm" "install" "[email protected]" "-d"
npm ERR! cwd /private/tmp
npm ERR! node -v v0.10.20
npm ERR! npm -v 1.3.11
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/tmp/npm-debug.log
npm ERR! not ok code 0

Using package inside docker

I am having webpack project which runs inside Docker container and application with node_modules is linked into container via volumes option.
When run application it throw following error:

ERROR in ./images/chat-sprite.png
Module build failed: Error: /usr/src/app/node_modules/pngquant-bin/vendor/pngquant: 1: /usr/src/app/node_modules/pngquant-bin/vendor/pngquant: �����H: not found
/usr/src/app/node_modules/pngquant-bin/vendor/pngquant: 2: /usr/src/app/node_modules/pngquant-bin/vendor/pngquant: �H__PAGEZERO�__TEXT�__text__TEXT�: not found
/usr/src/app/node_modules/pngquant-bin/vendor/pngquant: 3: /usr/src/app/node_modules/pngquant-bin/vendor/pngquant: Syntax error: "(" unexpected

It seems, problem has something to do with fact, that files are linked into container.
Any idea anybody? :)

Compilation from source fail on alpine linux

OS: alpine linux
kernel: Linux 3.14.36-0-grsec
npm: 2.7.3
nodejs: v0.10.33

$ npm install --save pngquant-bin
/
> [email protected] postinstall /home/taiga/tmp/node_modules/pngquant-bin
> node lib/install.js

  ⚠ spawn ENOENT
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)
[email protected] node_modules/pngquant-bin
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

indeed I've installed libpng-dev, does a specific version is required?

I have libpng-dev-1.6.16 installed

Broken Linux binary, and failure to build from source

The supplied Linux binary is unusable on any modern system. The error I get when trying to utilize the supplied binary is:
./pngquant: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./pngquant)

My tests were on an up-to-date Centos 6 box but it could be reproduced on any modern linux box where /lib64/libc.so.6 links to an even incrementally newer release

I realize that in theory the mechanism is supposed to fall back to building from source, but if the source build doesn't follow whatever build pattern is expected, it would of course fail as it does in this case. I'm not familiar enough with bin-wrapper to say whether or not the build pattern can be specified with sufficient flexibility to get it to work, but that's where I'd look for a fix to this issue.

Install fails on gentoo

I have no idea what's happening here


> [email protected] postinstall /tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin
> node lib/check.js

  pngquant: downloading [===================] 100% 0.0s


✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s




✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s






✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s








✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s










✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s












✗ pre-build test failed, compiling from source...
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s














✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:840:14)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1584:20)
    at CleartextStream.read [as _read] (tls.js:507:12)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)
    at EncryptedStream.write [as _write] (tls.js:366:25)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
















✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:124:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s


















✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:124:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:836:14)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1584:20)
    at CleartextStream.read [as _read] (tls.js:507:12)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)
    at EncryptedStream.write [as _write] (tls.js:366:25)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s




















✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Through2.EventEmitter.addListener (events.js:160:15)
    at Through2.Readable.on (_stream_readable.js:689:33)
    at BinWrapper._download (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:111:9)
    at BinWrapper.build (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:78:20)
    at /tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/lib/check.js:14:14
    at ChildProcess.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:173:16)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:789:12)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Through2.EventEmitter.addListener (events.js:160:15)
    at Through2.Readable.on (_stream_readable.js:689:33)
    at BinWrapper.build (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:88:9)
    at /tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/lib/check.js:14:14
    at ChildProcess.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:173:16)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:789:12)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:124:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ReadStream.EventEmitter.addListener (events.js:160:15)
    at new Interface (readline.js:121:11)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at WriteStream.EventEmitter.addListener (events.js:160:15)
    at WriteStream.Readable.on (_stream_readable.js:689:33)
    at new Interface (readline.js:135:12)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:120:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s






















✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:124:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ReadStream.EventEmitter.addListener (events.js:160:15)
    at new Interface (readline.js:121:11)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at WriteStream.EventEmitter.addListener (events.js:160:15)
    at WriteStream.Readable.on (_stream_readable.js:689:33)
    at new Interface (readline.js:135:12)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:120:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s
























✗ pre-build test failed, compiling from source...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:124:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ReadStream.EventEmitter.addListener (events.js:160:15)
    at new Interface (readline.js:121:11)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at WriteStream.EventEmitter.addListener (events.js:160:15)
    at WriteStream.Readable.on (_stream_readable.js:689:33)
    at new Interface (readline.js:135:12)
    at Object.exports.createInterface (readline.js:39:10)
    at new ProgressBar (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/progress/lib/node-progress.js:41:33)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:113:19)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at IncomingMessage.EventEmitter.addListener (events.js:160:15)
    at Through2.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/bin-wrapper.js:120:13)
    at Through2.EventEmitter.emit (events.js:117:20)
    at Request.<anonymous> (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/download.js:37:20)
    at Request.EventEmitter.emit (events.js:117:20)
    at Request.onResponse (/tmp/thereminweb.wsbuild/node_modules/wintersmith-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/index.js:830:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1689:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
  pngquant: downloading [===================] 100% 0.0s
  2.0.0.tar.gz: downloading [===================] 100% 0.0s

Complains about libpng-dev dependency in Windows 8.1

I get this when trying to install on Windows 8.1, is it a known issue or could it be resolved?
It works on Mac, Windows 10 and Linux.

> [email protected] postinstall C:\Users\my-user\Projects\my-project\node_modules\pngquant-bin
> node lib/install.js

  ‼ unable to get local issuer certificate
  ‼ pngquant pre-build test failed
  i compiling from source
  × Error: pngquant failed to build, make sure that libpng-dev is installed
    at ChildProcess.exithandler (child_process.js:202:12)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

Thanks in advance.

Build fails on rwpng.h (#include "png.h")

✗ pre-build test failed, compiling from source...
✗ Error: Command failed: In file included from pngquant.c:59:
./rwpng.h:35:10: fatal error: 'png.h' file not found
#include "png.h"    /* libpng header; includes zlib.h */
         ^

Happening today when trying to install grunt-contrib-imagemin, do you have a clue?

Thanks

using with libpng12?

This package no longer works with libpng 1.2?
I'm having a hard time making this work on a docker image based on node (wheeze as base). The png lib available there is 1.2..

Installation fails

I am seeing this:

npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/W17626/.nvm/versions/node/v6.2.0/bin/node" "/Users/w17626/.nvm/versions/node/v6.2.0/bin/npm" "install"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pngquant-bin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pngquant-bin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/W17626/repo/motoinsights/moto-insights/default/web/npm-debug.log

In the log, I see this:

58417 verbose stack Error: [email protected] postinstall: node index.js
58417 verbose stack Exit status 1
58417 verbose stack at EventEmitter. (/Users/W17626/.nvm/versions/node/v6.2.0/lib/node_modules/npm/lib/utils/lifecycle.js:245:16)
58417 verbose stack at emitTwo (events.js:106:13)
58417 verbose stack at EventEmitter.emit (events.js:191:7)
58417 verbose stack at ChildProcess. (/Users/W17626/.nvm/versions/node/v6.2.0/lib/node_modules/npm/lib/utils/spawn.js:24:14)
58417 verbose stack at emitTwo (events.js:106:13)
58417 verbose stack at ChildProcess.emit (events.js:191:7)
58417 verbose stack at maybeClose (internal/child_process.js:850:16)
58417 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
58418 verbose pkgid [email protected]
58419 verbose cwd /Users/W17626/repo/motoinsights/moto-insights/default/web
58420 error Darwin 15.4.0
58421 error argv "/Users/W17626/.nvm/versions/node/v6.2.0/bin/node" "/Users/w17626/.nvm/versions/node/v6.2.0/bin/npm" "install"
58422 error node v6.2.0
58423 error npm v3.8.9
58424 error code ELIFECYCLE
58425 error [email protected] postinstall: node index.js
58425 error Exit status 1
58426 error Failed at the [email protected] postinstall script 'node index.js'.
58426 error Make sure you have the latest version of node.js and npm installed.
58426 error If you do, this is most likely a problem with the pngquant-bin package,
58426 error not with npm itself.
58426 error Tell the author that this fails on your system:
58426 error node index.js
58426 error You can get information on how to open an issue for this project with:
58426 error npm bugs pngquant-bin
58426 error Or if that isn't available, you can get their info via:
58426 error npm owner ls pngquant-bin
58426 error There is likely additional logging output above.
58427 verbose exit [ 1, true ]

Thanks,
Dave

gruntjs/grunt-contrib-imagemin; pngquant not found

It get the following error when I wanna install > gruntjs/grunt-contrib-imagemin
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

> [email protected] 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! [email protected] postinstall: `node lib/check.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] 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

npm/npm#4421 (comment)

Install fails on FreeBSD

Hello,

would you be so kind and make this package available for FreeBSD? We need it for grunt-imagemin.

Cheers,
Laszlo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.