1. 程式人生 > >在node中使用GraphicsMagick出現以下錯誤的解決方法

在node中使用GraphicsMagick出現以下錯誤的解決方法

"C:\software\WebStorm 11.0.3\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" 03.js
Error: Could not execute GraphicsMagick/ImageMagick: gm "convert" "./img.jpg" "-resize" "50x50" "./img2.jpg" this most likely means the gm/convert binaries can't be found
    at ChildProcess.<anonymous> (d:\nodeSpace\day6\node_modules\gm\lib\command.js:232:12)
    at emitOne (events.js:96:13)
    at ChildProcess.emit (events.js:188:7)
    at ChildProcess.cp.emit (d:\nodeSpace\day6\node_modules\cross-spawn\lib\enoent.js:36:37)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

將程式用控制檯執行,不要用webstorm執行