1

我在运行我的 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>

它停止正常执行

4

2 回答 2

1

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

于 2018-04-12T11:06:16.037 回答
0

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

于 2018-04-12T19:30:12.273 回答