离子框架 - 命令'grunt serve'返回'多个可用地址'并冻结 [英] Ionic framework - command 'grunt serve' returns 'multiple addresses available' and freezes
问题描述
二手Yeoman离子发生器
https://github.com/diegonetto/generator-ionic
在没有sass的情况下运行它,默认插件列表和空白。
grunt serve我收到以下内容:
可用的多个地址。
请从下面的列表中选择要使用的地址:
1)192.168.1.69(en0)
2)localhost
地址选择:
当我在终端输入2并返回时,进一步或启动浏览器。
我也尝试输入localhost或'localhost'并返回,仍然没有它只是挂起...
我很困惑为什么?
任何关于此事的帮助都将非常感激,谢谢。
(Mac)〜/ .ionic或(Win)c:/users/username/.ionic
$ b编辑文件ionic.config中的文件:
$ b向配置文件添加ionicServeAddress:localhost
它会自动选择本地主机,然后grunt serve将会不要问你的地址。
我在这里找到了解决方案: https://stackoverflow.co m / a / 26330536/2925856
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.
Edit the file ionic.config in: (Mac) ~/.ionic or (Win) c:/users/username/.ionic
add: "ionicServeAddress": "localhost" to the config file
It will choose local host automatically and then "grunt serve" will not ask you for an address.
I found the solution here: https://stackoverflow.com/a/26330536/2925856
这篇关于离子框架 - 命令'grunt serve'返回'多个可用地址'并冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!