"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)
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运行
本文介绍了一种在使用WebStorm运行Node.js应用程序时遇到的gm模块错误,并提供了具体的错误信息,包括尝试执行GraphicsMagick/ImageMagick命令失败的情况。文章进一步分析了可能的原因在于相关二进制文件未被正确配置或缺失。
1355

被折叠的 条评论
为什么被折叠?



