When trying to run ImageMagick via node-imagemagick on my Grunt task, i get this error from ImageMagick:
Warning: Command failed: identify: unable to load
This worked for me:
brew uninstall imagemagick@6 brew install imagemagick@6 PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick