Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为(LinkNode.js )使用模块gm(Github)。GraphicsMagic
Node.js
gm
GraphicsMagic
如何确定模块所需的GraphicsMagic软件是否已在当前 node.js 机器上安装并功能齐全?(我想在我的服务器的初始化过程中检查这个)gm
您可以调用命令行工具并检查输出。
var exec = require('child_process').exec; exec("gm", function (error, stdout, stderr) { // Validate the output with one of the parameters. });