Express xdg open:没有可用于打开的方法';http://localhost:9000' 在服务器上

Express xdg open:没有可用于打开的方法';http://localhost:9000' 在服务器上,express,npm,server,gruntjs,mean-stack,Express,Npm,Server,Gruntjs,Mean Stack,我正在使用Dokku&OS Ubuntu 16.04的IP云数字服务器 我必须在此服务器上部署一个平均堆栈项目。在我的本地机器上,我使用grunt服务器来运行这个项目。在我的本地系统上,我使用的是Ubuntu 16.04 在服务器上,我成功地安装了npm、bower、nodejs、grunt服务器和mongodb。但当我想运行grunt服务器时。这给了我以下的错误 Running "open:server" (open) task Running "watch" task Waiting...

我正在使用Dokku&OS Ubuntu 16.04的IP云数字服务器

我必须在此服务器上部署一个平均堆栈项目。在我的本地机器上,我使用grunt服务器来运行这个项目。在我的本地系统上,我使用的是Ubuntu 16.04

在服务器上,我成功地安装了npm、bower、nodejs、grunt服务器和mongodb。但当我想运行grunt服务器时。这给了我以下的错误

Running "open:server" (open) task

Running "watch" task
Waiting...
Warning: Command failed: /bin/sh -c /root/Test/node_modules/open/vendor/xdg-open "http://localhost:9000"
Error: GDK_BACKEND does not match available displays
xdg-open: no method available for opening 'http://localhost:9000'
我已尝试了以下两个命令:

  • grunt发球
  • grunt发球——强制

  • 我还在服务器上安装了浏览器。还尝试重新安装grunt cli,但发现相同错误。如何修复此问题?

    通常服务器没有图形库。所以我们不能在服务器上打开浏览器。我们需要运行同样运行grunt的express服务器。用于运行express服务器。 将应用程序投入生产并运行命令
    节点./server

    通常服务器没有图形库。所以我们不能在服务器上打开浏览器。我们需要运行同样运行grunt的express服务器。用于运行express服务器。 将应用程序投入生产并运行命令 节点/服务器