diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

grunt serve frezees at "Multiple addresses available." #238

Open gamaralf opened 9 years ago

gamaralf commented 9 years ago

On freshly generated directory (using "yo ionic"), if I run "grunt serve" I get the message:

Multiple addresses available.
Please select which address to use by entering its number from the list below:
 1) 10.10.172.16 (eth0)
 2) localhost
Address Selection:  
Done, without errors.

Execution Time (2015-08-10 22:17:00 UTC)
ionic:serve  1.4s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
Total 1.5s

And even if I type "1" or "2", nothing happens (10.10.172.16 is my IP address). No development server is started.

I am running:

alanquigley commented 9 years ago

Same issue?

gamaralf commented 9 years ago

@alanquigley same as...?

I think I found a workaround on http://stackoverflow.com/a/26254903:

instead using the "grunt serve" command i tried the "ionic serve" command. This script the didn't hang in the commandline so i could select an address. (in my case i selected 2 (the localhost)).

From this point it remembers the option you selected. so you can run "grunt serve" command again.

GarySwift commented 8 years ago

Thank you @gamaralf, exactly what I needed.