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

Installation error on linux #3

Closed
Munter opened this issue Aug 12, 2013 · 7 comments
Closed

Installation error on linux #3

Munter opened this issue Aug 12, 2013 · 7 comments

Comments

@Munter
Copy link

Munter commented Aug 12, 2013

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
@kevva
Copy link
Contributor

kevva commented Aug 14, 2013

@Munter, I pushed a new release today. Could you try installing again?

@Munter
Copy link
Author

Munter commented Aug 14, 2013

This solves the problem with the many spawned processes. Was there somehow a recursive call in there?

There is still the behavior that when it builds from source, right after it has downloaded the source, it clears the screen before continuing. That gives the whole installation a bit odd feeling which makes me uncertain of what happened, even though everything might be perfectly in order. Is it possible to address that as well?

@kevva kevva closed this as completed Aug 23, 2013
@kevva
Copy link
Contributor

kevva commented Aug 23, 2013

@Munter, not sure since it's Mocha that's doing it.

@williamboxhall
Copy link

I am seeing the problem as well when installing via the yeoman angularJS generator on mac osx

@mkelley33
Copy link

I'm also seeing this problem on Mac OSX Mountain Lion 10.8.4 when installing via the yeoman angularJS generator.

@kevva
Copy link
Contributor

kevva commented Sep 2, 2013

What problem? Sometimes the binary won't work but if the build is successful then it's no problem.

@SgtPooki
Copy link

Removing comment details as I opened up an issue on the npm repo: https://github.com/isaacs/npm/issues/4014

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

5 participants