简体   繁体   English

Ionic2服务无法正常工作

[英]Ionic2 serve not working

When i write ionic serve nothing opens. 当我写离子服务时,什么也没有打开。 I have tried changing nodejs versions. 我试过更改nodejs版本。 Reinstalling ionic cordova. 重新安装离子科尔多瓦。 Also cleared cache and other ways on internet. 还清除了Internet上的缓存和其他方式。 Nothing works. 什么都没有。 Please help. 请帮忙。 No errors are shown but a window is not opened. 没有显示错误,但没有打开窗口。

Info: 信息:

C:\Projects\cutePuppyPics>ionic info

cli packages: (C:\Users\Tullo\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.4
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v8.9.1
    npm  : 5.5.1
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Serve: 服务:

C:\Projects\cutePuppyPics>ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[20:52:58]  watch started ...
[20:52:58]  build dev started ...
[20:52:58]  clean started ...
[20:52:58]  clean finished in 12 ms
[20:52:58]  copy started ...
[20:52:58]  deeplinks started ...
[20:52:58]  deeplinks finished in 40 ms
[20:52:58]  transpile started ...
[20:53:03]  transpile finished in 5.17 s
[20:53:03]  preprocess started ...
[20:53:04]  preprocess finished in 4 ms
[20:53:04]  webpack started ...
[20:53:04]  copy finished in 5.44 s
[20:53:13]  webpack finished in 9.14 s
[20:53:13]  sass started ...
[20:53:14]  sass finished in 1.68 s
[20:53:14]  postprocess started ...
[20:53:14]  postprocess finished in 16 ms
[20:53:14]  lint started ...
[20:53:14]  build dev finished in 16.32 s
[20:53:14]  watch ready in 16.47 s`enter code here`
[20:53:14]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.10.8:8100
     DevApp: cutePuppyPics@8100 on LAPTOP-NNU75MUT

Sometimes the browser doesn't open automatically. 有时浏览器不会自动打开。 Try entering http://localhost:8100 on your browser manually after ionic serve . ionic serve后,尝试在浏览器中手动输入http://localhost:8100

force an ip adresse 强制使用IP地址

ionic serve --address YOUR_IP_ADDRESS 离子服务-地址YOUR_IP_ADDRESS

your ip adresse should be available , i think you can use 192.168.10.8 or 127.0.0.1 您的IP地址应该可用,我认为您可以使用192.168.10.8或127.0.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM