Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic framework - command 'grunt serve' returns 'multiple addresses available' and freezes

Used Yeoman ionic-generator https://github.com/diegonetto/generator-ionic

Where I ran it without sass, default plugin list and blank.

And when running grunt serve I get the following:

Multiple addresses available.

Please select which address to use by entering its number from the list below:

 1) 192.168.1.69 (en0)
 2) localhost

Address Selection:  

When I type 2 in terminal and return it just hangs there without going further or launching a browser.

I have tried also typing localhost or 'localhost' and returning, still nothing it just hangs...

I am so confused to why?

Any help on the matter would be most appreciated, thank you.

like image 986
Jules Avatar asked Oct 08 '14 08:10

Jules


1 Answers

This morning i ran in the same problem as you did. I look into the Ionic serve code (.\node_modules\ionic\lib\ionic\serve.js) and compared it with another file, i didnt found any difference. So 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.

If the command "ionic serve" isn't working try to install ionic: "npm install -g ionic"

like image 73
NyXus Avatar answered Sep 20 '22 00:09

NyXus