Lite server Couldn’t open browser

By | February 9, 2019

If you are trying lite server and want to open up another browser using the bs-config.json file and you get the following error:

“Couldn’t open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)”

you are probably using a config file of:

{
  "port": 3000,
  "server": {
    "baseDir": "."
  },
  "browser": ["chrome"]
}

Try changing it to:

{
  "port": 3000,
  "server": {
    "baseDir": "./test"
  },
  "browser": ["google chrome"]
}

and it should work like a charm.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *