Php 节点服务器屏幕截图在实时ubundu服务器上不工作

Php 节点服务器屏幕截图在实时ubundu服务器上不工作,php,node.js,electron,Php,Node.js,Electron,节点服务器屏幕截图在localserver中运行良好。但它在实时服务器(ubundu)上不起作用 在节点服务器屏幕截图中,使用electron库。ubundu服务器的electron中是否存在任何依赖项 下面的代码在localhost中运行良好 server\u屏幕截图。fromURL(“https://google.com“,”googletest.png“,函数(){ }); 它也不会在live中引发任何错误请尝试执行以下操作: server_screenshot.fromURL("http

节点服务器屏幕截图在localserver中运行良好。但它在实时服务器(ubundu)上不起作用

在节点服务器屏幕截图中,使用electron库。ubundu服务器的electron中是否存在任何依赖项

下面的代码在localhost中运行良好

server\u屏幕截图。fromURL(“https://google.com“,”googletest.png“,函数(){
});

它也不会在live中引发任何错误

请尝试执行以下操作:

server_screenshot.fromURL("https://google.com", "googletest.png", function(error){
    if(error) console.log(error);
});

这将允许您查看错误并进一步调试应用程序

你能试试
server\u屏幕截图吗https://google.com“,”googletest.png“,console.log)我尝试了上面的代码。它在本地抛出null并生成屏幕截图。但在live中,它不会抛出任何错误,也不会创建屏幕截图这是live服务器日志屏幕截图如果使用
server\u屏幕截图,它会做什么https://google.com“,”googletest.png“,{show:false},console.log)它仍然不会抛出任何东西