Vicky Smart Vicky Smart - 1 year ago 361
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 Source

In ionic.project file add:

"defaultBrowser": ""


"defaultBrowser": "chrome"

and try ionic serve

this is working..!

u can also try :

"defaultBrowser": "firefox"

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download