livereload没有提供地址选择 [英] livereload doesn't give choice of addresses

查看:79
本文介绍了livereload没有提供地址选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新node.js之后,我发现了这个问题..当我运行ionic cordova运行android --livereload时,它在本地主机中运行

After the updation of node.js i found this issue.. when i run ionic cordova run android --livereload it is running in localhost

我该如何解决这个问题?请帮助我.

How do i solve this issue ?? please help me..

离子信息:

   Ionic CLI                     : 5.2.1
   Ionic Framework               : @ionic/angular 4.6.0
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

科尔多瓦:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 4 other plugins)

实用程序:

   cordova-res : not installed
   native-run  : 0.2.7

系统:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.2
   OS     : Windows 10

推荐答案

因此,这是Ionic-cli v5.2.1中的新变化

So this is a new change in Ionic-cli v5.2.1

您可以使用此命令

离子服务--address = 0.0.0.0

或者您的情况

离子Cordova运行android --livereload --address = 0.0.0.0

或者如果您有特定的网址

or if you have a specific url

离子Cordova运行android --livereload-url = http://localhost:8100

ionic cordova run android --livereload-url=http://localhost:8100

这将像以前一样在本地主机以及外部URL上启动服务器.

This will spin up the server like it used to previously, both on the localhost as well as the external url.

有关更多信息,请参阅此更新文档. https://ionicframework.com/docs/cli/commands/cordova-run

See this update documentation for more info https://ionicframework.com/docs/cli/commands/cordova-run

这篇关于livereload没有提供地址选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆