【问题标题】:running ionic application after it was working before : ionic serve在它之前工作之后运行离子应用程序:离子服务
【发布时间】:2018-09-22 10:31:03
【问题描述】:

我在运行我的 ionic 应用程序时遇到问题。 ionic serve 命令在构建应用程序后自行终止,尽管它之前正在运行

执行命令后的结果:

E:\ionic\Test>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
[11:52:28]  watch started ...
[11:52:28]  build dev started ...
[11:52:28]  clean started ...
[11:52:28]  clean finished in 5 ms
[11:52:28]  copy started ...
[11:52:28]  deeplinks started ...
[11:52:28]  deeplinks finished in 25 ms
[11:52:28]  transpile started ...
[11:52:31]  transpile finished in 2.75 s
[11:52:31]  preprocess started ...
[11:52:31]  preprocess finished in 1 ms
[11:52:31]  webpack started ...
[11:52:31]  copy finished in 2.89 s
[11:52:36]  webpack finished in 5.22 s
[11:52:36]  sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[11:52:37]  sass finished in 769 ms
[11:52:37]  postprocess started ...
[11:52:37]  postprocess finished in 5 ms
[11:52:37]  lint started ...
[11:52:37]  build dev finished in 8.92 s
[11:52:37]  watch ready in 8.97 s
[11:52:37]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://10.101.60.135:8100
     DevApp: Test@8100 on DESKTOP-VJQV9GP


E:\ionic\Test>

它停止正常执行

【问题讨论】:

    标签: cordova ionic-framework ionic3 ionic-serve


    【解决方案1】:

    当您打开多个控制台并运行多个 ionic 实例时,这种情况经常发生

    【讨论】:

    • 我同时运行了一个控制台我还重新启动了我的机器以更确定只有一个控制台在运行
    【解决方案2】:

    检查是否有其他进程正在使用相同的 4200 端口。

    【讨论】:

      猜你喜欢
      • 2018-03-01
      • 2020-05-15
      • 2023-03-09
      • 2016-09-27
      • 2017-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多