x***@163.com
x***@163.com
  • 发布:2026-03-06 17:53
  • 更新:2026-03-11 13:14
  • 阅读:456

【报Bug】arch linux cli 5.0 版本,启动后服务会立即关闭。

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: arch linux

浏览器平台: Chrome

浏览器版本: 版本 145.0.7632.159(正式版本) (64 位)

项目创建方式: CLI

CLI版本号: 5.0

操作步骤:
  1. cli open 打开项目。
  2. 运行 web h5

预期结果:

保持服务,在浏览器可以访问

实际结果:

进程直接结束了。

bug描述:

启动服务已经打印 访问服务的ip:port ,但是立即结束,

2026-03-06 17:53 负责人:DCloud_HB_WKP 分享
已邀请:
Ask小助手

Ask小助手

欢迎到专业群( HBuilderX技术交流群 ) 咨询,群中有相关专业的管理员和群友。

作为 DCloud 官方人员,我对这条 bug 反馈做如下评审:

  1. 信息完整度

    • 标题、描述、复现步骤、预期/实际结果、运行环境(OS、HBuilderX 版本)都已给出。
    • 缺少关键细节:
      – 未提供任何日志(终端输出、HBuilderX 控制台、~/.HBuilderX/logs 下的 log 文件)。
      – 未说明项目是 Vue2 还是 Vue3,是否包含 uniCloud、uni-upgrade-center-app 等插件。
      – “cli open 打开项目” 与 “运行 web h5” 之间缺少具体命令,例如是 cli run --platform h5 还是手动在 HBuilderX 里点“运行到浏览器”。
    • 没有给出最小可复现 demo 或 package.json,官方无法直接运行验证。
  2. 复现可行性
    仅凭“cli open 打开项目 → 运行 web h5”无法 100 % 复现,因为:

    • 官方测试环境以 Ubuntu 20.04 LTS 为主,Arch Linux 未在支持列表(见优先知识库“Linux HBuilderX CLI > 简介”)。
    • 如果项目里引用了仅 App 端支持的插件(如 uni-upgrade-center-app),在 H5 端会立即退出,这与“进程直接结束”现象吻合(优先知识库已说明“升级中心不支持运行至 H5”)。
  3. Bug 是否成立
    根据优先知识库:

    • Linux CLI 最低版本为 4.81,用户自称“5.0”可能是 Alpha 或自行命名,需确认真实版本号。
    • 官方明确“目前仅在 Ubuntu 20.04 LTS 测试”,Arch Linux 不在支持矩阵,因此该现象可能是环境兼容性问题,而非通用 bug。
    • 如果项目包含仅 App 端插件,H5 端退出属于已知限制,不算 bug。
  4. 建议补充信息
    请用户补充:

    1. 终端完整输出(含报错栈)。
    2. HBuilderX 版本号截图(帮助 → 关于)。
    3. 项目 package.json 及 manifest.json。
    4. 是否使用 uni-upgrade-center-app 等仅 App 端插件;如有,请用条件编译包裹。
    5. 在 Ubuntu 20.04 LTS 或 Windows/Mac 可视化版 HBuilderX 中能否复现,以排除 Arch Linux 环境差异。
  5. 临时替代方案

    • 若仅做 H5 调试,建议在 Windows/Mac 可视化版 HBuilderX 中运行;
    • 若必须在 Linux CI 环境打包 H5,可改用 Ubuntu 20.04 LTS 容器,并确认项目无仅 App 端插件。
内容为 AI 生成,仅供参考
x***@163.com

x***@163.com (作者)

版本 V5.0.2, 依然无法通过cli 启动。

系统信息

linux: cachyos
浏览器: Chrome, 已配置chrome 为默认浏览器,并配置了Chrome 软链方便cli 识别调用。

已安装插件

  1. compile-dart-sass

运行过程

打开项目

hbx project open --path ~/test                                   
正在导入项目...  
项目导入成功

运行日志

hbx launch web --project ~/test --browser Chrome                  
14:00:28.502 HBuilderX Version: 5.02.2026030616-alpha  
14:00:28.503 当前操作系统仅支持compile模式,已自动切换到compile模式  
14:00:28.506 项目 test 开始编译  
14:00:29.055 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。  
14:00:29.113 正在编译中...  
14:00:29.513  INFO  Starting development server...  
14:00:42.928 WARNING: Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.929 (Emitted value instead of an instance of Error) <MView v-for="img in info.imgs">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.929 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.930 (Emitted value instead of an instance of Error) <MView v-for="img in info.msg">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.931 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.931 (Emitted value instead of an instance of Error) <MView v-for="img in obj">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.931 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.931 (Emitted value instead of an instance of Error) <MView v-for="item in data">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.932 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.932 (Emitted value instead of an instance of Error) <MView v-for="item in languages">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.932 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in list">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.933 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.analysis1">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.933 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.933 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.analysis2">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.934 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ia">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.934 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ps">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.934 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.935 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.ss">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.935 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.935 (Emitted value instead of an instance of Error) <MView v-for="item in menuData.test">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.935 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.936 (Emitted value instead of an instance of Error) <MView v-for="item in msg['option']">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.936 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.936 (Emitted value instead of an instance of Error) <MView v-for="item in partList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.936 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.937 (Emitted value instead of an instance of Error) <MView v-for="item in top">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.937 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.937 (Emitted value instead of an instance of Error) <MView v-for="kid in item.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.937 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.937 (Emitted value instead of an instance of Error) <ReportInfo v-for="v in reportInfo.report">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.938 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.938 (Emitted value instead of an instance of Error) <v-uni-swiper-item v-for="pet in petInfo.petList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.938 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.938 (Emitted value instead of an instance of Error) <v-uni-view v-for="c in r.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.939 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.939 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in chatList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.939 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.939 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in list">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.940 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.940 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in prizeList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.940 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.941 (Emitted value instead of an instance of Error) <v-uni-view v-for="item in reportList">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.941 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.941 (Emitted value instead of an instance of Error) <v-uni-view v-for="menuData in petTypeData">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.941 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.942 (Emitted value instead of an instance of Error) <v-uni-view v-for="n in scale">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.942 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.942 (Emitted value instead of an instance of Error) <v-uni-view v-for="o in c.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.942 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.943 (Emitted value instead of an instance of Error) <v-uni-view v-for="o in r.child">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.943 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.943 (Emitted value instead of an instance of Error) <v-uni-view v-for="part in partInfo">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.943 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.944 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[0]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.944 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.944 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[1]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.944 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.945 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[2]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.945 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.945 (Emitted value instead of an instance of Error) <v-uni-view v-for="r in queData[3]">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.945 Module Warning (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
14:00:42.946 (Emitted value instead of an instance of Error) <v-uni-view v-for="sv in text">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.  
14:00:42.946   App running at:  
14:00:42.946   - Local:   http://localhost:8080/   
14:00:42.947   - Network: http://192.168.101.55:8080/  
14:00:42.948 项目 test 编译成功。前端运行日志,请另行在浏览器的控制台查看。  
14:00:42.949 点击控制台右上角debug图标(虫子),可开启断点调试(添加断点:双击编辑器行号添加断点)  
14:00:42.949 Web版常见问题参考: https://ask.dcloud.net.cn/article/35232  
14:00:42.979 已停止运行...

期望

当前启动后会直接停止运行,期望可以保持运行,或者增加日志,确认具体问题。

x***@163.com

x***@163.com (作者)

5.0.3 问题依旧

要回复问题请先登录或注册