Browser-Sync does not start. Does it give an error when opening?
-
Guys help! Started learning Gulp and Sass. I wrote my Task and when I open the command "gulp server" - the console gives the error "Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false).
Here is a screenshot.
JavaScript Hunter Roy, Aug 10, 2020 -
Try to go to .. \ node_modules \ browser-sync \ dist folder
There should be a default-config.js file there.
search for the line: open: "local",
usually 286 lines
and change to: open: "false",
If it does not help, do not forget to change it backAnonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!