Vicky Smart Vicky Smart - 14 days ago 14
AngularJS Question

How do I set ionic serve to use Chrome as the default browser?

I want to run

ionic serve
with Google Chrome.

I've tried:

ionic serve --browser chrome
ionic serve --browser google-chrome


But that doesn't work. I can get it to use firefox if I type:

ionic serve --browser firefox


How do I set the default browser for
ionic serve
to Chrome?

Answer

In ionic.project file add:

"defaultBrowser": ""

OR

"defaultBrowser": "chrome"

and try ionic serve

this is working..!

u can also try :

"defaultBrowser": "firefox"

this.. and this.. might be help..