Search code examples
angularjsyeoman-generator-angularcentos7

I can't run Yeoman generator-angular-fullstack in server vps CentOS7


I have a problem with xdg-open when I try to run "grunt serve:dist" in a Centos 7 VPS with the following message:

Warning: Command failed: xdg-open: no method available for opening 'http://0.0.0.0:9000'

I tried reinstalling the xdg-util but it didn't work.

Could someone help me with this problem?

Thanks in advance!


Solution

  • grunt serve:dist is not built for serving your site, only a way to preview the dist version in developpment phase.

    To serve your project you have to :

    • generate the dist/ folder with grunt or grunt build
    • go to dist/ then node server.js