离子服务不起作用/退出批处理

Ionic serve doesn't work/ exits batch

我正在努力让 ionic serve 命令正常工作。 现在,当我进入 cmd 中的项目文件夹和 运行 命令时,它会给我以下输出:

Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[01:44:47]  watch started ...
[01:44:47]  build dev started ...
[01:44:47]  clean started ...
[01:44:47]  clean finished in 6 ms
[01:44:47]  copy started ...
[01:44:47]  deeplinks started ...
[01:44:47]  deeplinks finished in 21 ms
[01:44:47]  transpile started ...
[01:44:50]  transpile finished in 3.19 s
[01:44:50]  preprocess started ...
[01:44:50]  preprocess finished in less than 1 ms
[01:44:50]  webpack started ...
[01:44:50]  copy finished in 3.37 s
[01:44:55]  webpack finished in 5.10 s
[01:44:55]  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.
[01:44:56]  sass finished in 974 ms
[01:44:56]  postprocess started ...
[01:44:56]  postprocess finished in 8 ms
[01:44:56]  lint started ...
[01:44:56]  build dev finished in 9.44 s
[01:44:57]  watch ready in 9.52 s
[01:44:57]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://111.111.1.111:8100
     DevApp: foo@8100 on DESKTOP-11QG111

它似乎工作正常,但它并没有留在批处理中,而是只是退出了批处理,因此服务器未 运行ning。我很困惑为什么它不起作用。

为了任何遇到这个问题的人的利益,Windows 上的解决方案是确保 C:\windows\system32在PATH环境变量中