Do you have graphicsmagick

February 22, 2014 2.2k views
Tell me please, was graphicsmagic library install on your service? I want to deploy nodejs application and I need this library.
1 Answer
We provide unmanaged linux VPSes with full root access -- you will be able to install any programs/libraries you want.

We have plenty of articles on Node.js:
  • I've tried both of these methods without success:

    • this method had the plugin displaying in /var/lib/dokku/plugins, and my nodejs app has gm module in the package.json, but it's not working.
    • tried rebooting, too. No success.


    Neither of these methods worked (using the plugin nor installing directly to server (dokku + Ubuntu))

    Would appreciate some direction on this.


  • Hey Shaun,

    If you're trying to use it on an app deployed through Dokku. It needs to be installed in the docker container that the app runs in, not installed system wide on the server.

    When using the Dokku plugin, are you seeing any error messages? Your best bet might be to file a bug against the plugin.

  • Thanks for the response Andrew.

    No error messages, other than the node Error { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }, which I know is thrown when the graphicsmagick module isn't installed on the server.

    When I follow the steps outlined in, the plugin appears to be installed in /var/lib/dokku/plugins, but not in my app's container. If there is any documentation you could point me to on how to subsequently install in the app's docker container that would be useful.

    I'm hopping over from Nodejitsu, and getting this to work will be a deal-breaker, which is unfortunate since I have enjoyed playing with Digitalocean so far :(

  • Are you running imagemagick using child_process.spawn? Make sure node.js has access to the directory you're trying to run imagemagick in and that cwd is properly set.

Have another answer? Share your knowledge.