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?
Developer Options & USB Debugging are enabled by default in the Android emulator. Open the Chrome browser and navigate to the URL chrome://inspect/#devices . Your connected Android device should show up in the list of Remote Targets. On your device, open the Ionic app that you would like to debug using Chrome.
On your Ubuntu desktop, click on the “Show Applications” icon, which should be located at the bottom-left corner of your screen, and select Settings. In the Settings menu, click on Details 🡪 Default Applications. In the Default Applications menu, navigate to the “Web” category and select Google Chrome.
On Mac, option -f chrome
is not working, on ionic version 2.1.8
Use ionic serve --browser "google chrome"
It will set the default browser to Chrome.
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..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With