Node.js: Error: spawn ENOENT while using GM module
问题 Even though this has been asked several times, none of the existing answers helped me out. Using a MEAN environment (on Mac OSX), I installed graphicsmagick using: sudo npm install gm Whenever I run the following script, I get this error: { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' } This is the piece of code I am trying to run: var gm = require('gm'); //var gm = require('gm').subClass({ imageMagick: true }); //tried this one too gm('./project/public/images