在以前工作之前运行离子应用:离子发球

时间:2018-04-12 10:03:25

标签: cordova ionic-framework ionic3 ionic-serve

我在运行离子应用程序时遇到问题。 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>

它正常停止执行

2 个答案:

答案 0 :(得分:1)

当您打开多个控制台并运行多个离子

实例时,这种情况经常发生

答案 1 :(得分:0)

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