gm
                                
                                 gm copied to clipboard
                                
                                    gm copied to clipboard
                            
                            
                            
                        Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%
Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%[EXIF:Orientation]" "assets/images/1499765704765.jpeg" this most likely means the gm/convert binaries can
't be found
at ChildProcess.
Why I am getting this issue. Please help
I'm having this same issue too, none of the existing solutions seem to work.
I'm beginning to think that some dependency of the gm lib is causing this issue.
currently using this image processing lib in place of gm, and it works well.
https://www.npmjs.com/package/sharp
Try to see if installing graphicsmagick makes a difference. (For me it did.)
gm -version 
GraphicsMagick 1.4 snapshot-20190423 Q16 http://www.GraphicsMagick.org/
worked, while
identify -version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
did not.
If you installed ImageMagick then you have to create a symlink to gm in an exposed directory like /usr/local/bin on Mac from your magick binary
Executing this should help.
ln -s /path/to/bin/magick /path/to/bin/gm
gm should be placed in the path exposed to the terminal.