我无法在服务器vps CentOS7中运行Yeoman generator-angular-fullstack

Gab*_*uiz 3 angularjs yeoman-generator-angular centos7

当我尝试使用以下消息在Centos 7 VPS中运行"grunt serve:dist"时,xdg-open出现问题:

警告:命令失败:xdg-open:没有可用于打开'http://0.0.0.0:9000'的方法

我尝试重新安装xdg-util但它没有用.

有人可以帮我解决这个问题吗?

提前致谢!

mer*_*dec 7

grunt serve:dist 不是为服务您的网站而构建的,只是在开发阶段预览dist版本的方法.

要为您的项目服务,您必须:

  • dist/grunt或生成文件夹grunt build
  • dist/然后node server.js