Imagemagick Error: Command failed: execvp()
So you are pretty excited to be using node-imagemagick
with Node.js. You expect to be able to start doing magic on images instantly, but are stopped cold by this rather disappointing error message:
Error: Command failed: execvp(): No such file or directory at ChildProcess. (/home/ubuntu/node_projects/sb7/node_modules/imagemagick/imagemagick.js:64:15) at ChildProcess.emit (events.js:70:17) at maybeExit (child_process.js:359:16) at Process.onexit (child_process.js:395:5)
Worry not image magician! Nothing is wrong with your code or node-imagemagick
. All you need to do is install the ImageMagick graphics library on your system. node-imagemagick
is just the Node.js driver for the actual ImageMagick library, so you need to install ImageMagick which may not be installed by default.
If you are on Ubuntu do this:
$ apt-get install imagemagick
If you are on Mac OS X do this:
$ brew install imagemagick
You will need to figure out yourself if you are on any other system. But I am sure they must be pretty easy. Run your code again now and behold the magic on ImageMagick and Node.js in full glory!