首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ionic 3 ionic serve命令自行终止

Ionic 3 ionic serve命令自行终止
EN

Stack Overflow用户
提问于 2018-03-01 19:27:06
回答 9查看 1.2K关注 0票数 1

我在ionic serve命令中遇到错误。我可以通过npm run ionic : serve为应用程序提供服务。我搜索了有关这方面的内容,还添加了ionic serve的输出--verbos.请帮助解决这个问题。

离子信息输出是这样的:

代码语言:javascript
复制
cli packages: (C:\Users\DELL\AppData\Roaming\npm\node_modules)

        @ionic/cli-utils  : 1.19.1
        ionic (Ionic CLI) : 3.19.1

    global packages:

        cordova (Cordova CLI) : 8.0.0

    local packages:

        @ionic/app-scripts : 3.1.8
        Cordova Platforms  : windows broken
        Ionic Framework    : ionic-angular 3.9.2

    System:

        Node : v8.4.0
        npm  : 5.3.0
        OS   : Windows 8.1

    Environment Variables:

        ANDROID_HOME : C:\Users\DELL\AppData\Local\Android\sdk;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

ionic serve --详细输出如下:

代码语言:javascript
复制
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\DELL\\garageApp', local: false, binPath:
        'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Daemon found (pid: 3040)
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[16:53:29]  watch started ...
[16:53:29]  build dev started ...
[16:53:29]  clean started ...
[16:53:29]  clean finished in 88 ms
[16:53:29]  copy started ...
[16:53:30]  deeplinks started ...
[16:53:30]  deeplinks finished in 252 ms
[16:53:30]  transpile started ...
[16:53:47]  transpile finished in 17.42 s
[16:53:47]  preprocess started ...
[16:53:47]  preprocess finished in 5 ms
[16:53:47]  webpack started ...
[16:53:48]  copy finished in 18.51 s
[16:54:15]  webpack finished in 27.23 s
[16:54:15]  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.
[16:54:20]  sass finished in 5.78 s
[16:54:20]  postprocess started ...
[16:54:21]  postprocess finished in 73 ms
[16:54:21]  lint started ...
[16:54:21]  build dev finished in 51.56 s
[16:54:22]  watch ready in 52.37 s
[16:54:22]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.1.14:8100
     DevApp: garageApp@8100 on admin


E:\garage-frontend>
EN

回答 9

Stack Overflow用户

发布于 2018-03-09 13:16:21

看起来您的应用程序已在运行,但未在浏览器选项卡中打开。您可以强制ionic在特定浏览器中打开应用程序,如:-

ionic serve -w铬(用于铬)

ionic serve -w火狐(用于mozila)

也许这会有所帮助。

票数 0
EN

Stack Overflow用户

发布于 2018-03-27 14:55:01

ionic serve -d它起作用了,它可以帮助你。

票数 0
EN

Stack Overflow用户

发布于 2018-05-31 15:48:48

尝试下面的命令,

npm run ionic:serve -l

这与ionic serve -l的工作方式类似

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49048711

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档