# 2026.7.3 (ESR) - 无法直接从命令行运行 QUnit 测试

**URL:** <https://meta.discourse.org/t/2026-7-3-esr-qunit-tests-cant-run-out-of-the-box-from-cli/413544>\
**Category:** Bug\
**Tags:** docker, dev-install\
**Created:** [2026年九月29日 10:00 UTC](https://meta.discourse.org/t/2026-7-3-esr-qunit-tests-cant-run-out-of-the-box-from-cli/413544 "2026-09-29T10:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manut](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manut/32/485119_2.png) [@manut](https://meta.discourse.org/u/manut)\
**Post date:** [2026年九月29日 10:00 UTC](https://meta.discourse.org/t/2026-7-3-esr-qunit-tests-cant-run-out-of-the-box-from-cli/413544/1 "2026-09-29T10:00:49Z")

</div>

启动一个新容器后，无法通过命令行运行 qunit，执行 `d/rake plugin:qunit\["some-plugin"\]` 时会报错：“chrome is not installed”。

在容器内安装 Chrome 会导致浏览器因沙箱模式而提前退出。使用 `CI=1` 会因其他原因失败；我最终让 QUnit 跑起来的唯一方法是安装 Chromium，并创建一个 `google-chrome-stable` 的 shim，使其调用 `chromium --no-sandbox`。

使用 playwright 脚本安装浏览器仍然无法找到 Chrome（`pnpm exec playwright install --with-deps`）。
