question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

at Socket.<anonymous> /node_modules/gm/lib/command.js:57:17)

See original GitHub issue

Env ๐Ÿ‘

1. OS : OSX 10.11.6 2. Npm: 4.0.1 3. Node 6.2.1

Error ๐Ÿ‘Ž

[ Error: Stream yields empty buffer
      at Socket.<anonymous> (/Users/hamma/test-img-console/node_modules/gm/lib/command.js:57:17)
      at emitNone (events.js:91:20)
      at Socket.emit (events.js:185:7)
      at endReadableNT (_stream_readable.js:926:12)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9),
  Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%wx%h" "-" this most likely means the gm/convert binaries can't be found
      at ChildProcess.<anonymous> (/Users/hamma/test-img-console/nodejs-plugins/console-img/node_modules/gm/lib/command.js:232:12)
      at emitOne (events.js:96:13)
      at ChildProcess.emit (events.js:188:7)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:202:12)
      at onErrorNT (internal/child_process.js:348:16)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9) ]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
HeroProtagonistcommented, Nov 25, 2016

Did you install the perquisite?

$ sudo apt-get install graphicsmagick # Ubuntu
$ brew install graphicsmagick         # Mac OS X
0reactions
IonicaBizaucommented, Jun 12, 2017

The installation should fail if lwip fails to be installed.

Addressed in https://github.com/IonicaBizau/lwip2/pull/16.

The reason for the error was: in case gm is not available, lwip is installed (and compiled). In case the required tools for compilation are missing (e.g. XCode or so), lwip installation was failing silently. Now that error should block the image-to-ascii installation. ๐Ÿ’ฅ

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found