Linux下browser-sync无法启动Chrome的解决方法
笔者的环境:
OS: Ubuntu Linux
Browser: Chrome, Firefox
每次希望启动chrome浏览器,系统都会报错:
1 browser-sync start -s --directory -f **/* --browser chrome
Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)
正确的启动方式应为:
browser-sync start -s --directory -f **/* --browser google-chrome