【问题标题】:LHCI - This version of Chrome is too oldLHCI - 这个版本的 Chrome 太旧了
【发布时间】:2023-03-19 02:40:01
【问题描述】:

我已经设置了 google 的 lhci 以使用来自 github 操作的 CI 并将结果上传到私人服务器。

我遇到的一个问题是性能分数是“0”还是“?”如果您打开报告。

我收到的 CLS 错误是:

This version of Chrome is too old to support 'Cumulative Layout Shift'. Use a newer version to see full results.

我在 github 操作中所做的只是:

npm install @lhci/cli@0.8.x
npx lhci autorun --failOnUploadFailure=true 

【问题讨论】:

  • 我已经看到了这个,但无法在重复运行时重现。它可能只是一个连接小鬼
  • @larowlan 找到并发布了解决方案,以防您再次遇到问题

标签: npm continuous-integration github-actions lighthouse


【解决方案1】:

好的,原来问题出在我们自托管运行器的机器上 - 它的 chromium 版本确实已经过时了。

但即使在这种情况下或任何其他情况下,我们的长期解决方案将始终通过安装 puppeteer 提供新版本的 chrome:

npm install @lhci/cli@0.8.x
npm install puppeteer
npx lhci autorun --failOnUploadFailure=true 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-18
    • 2021-01-05
    • 2016-12-13
    相关资源
    最近更新 更多