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?
On Mac, option
-f chrome
is not working, on ionic version 2.1.8Use
ionic serve --browser "google chrome"
It will set the default browser to Chrome.
ionic serve -w chrome this works for me and successfully launch my app on chrome
Try
ionic serve -f chrome
. This will set default ionic browser to Chrome and subsequentionic serve
commands will run in Chrome.And this works on my Mac:
ionic serve --browser "google chrome"
As of working in Ionic v3.9.2, you can open this using
command to open the app in Google Chrome by default.
Try
ionic serve -w chrome
, this will serve ionic2 inChrome
(ionic2 RC4+)