Skip to content

Error "Runtime error encountered: No Chrome installations found." #214

Open
@pcgeek86

Description

@pcgeek86

Summary

On Windows 10, I use the Scoop package manager to install Chromium, Google Chrome, and Node.js. When I run chrome.exe from a PowerShell terminal, it launches Chromium 84, which includes lighthouse in the DevTools.

When I run lighthouse CLI, I received an error stating Runtime error encountered: No Chrome installations found.

It seems that something in how lighthouse CLI searches for Chrome installations is borked?

Provide the steps to reproduce

npm install --global lighthouse
lighthouse trevorsullivan.net

What is the current behavior?

[cbt] C:\Users\TrevorSullivan\git> lighthouse.cmd trevorsullivan.net
Runtime error encountered: No Chrome installations found.
Error
    at new LauncherError (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\utils.js:37:22)
    at new ChromeNotInstalledError (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\utils.js:68:9)
    at Launcher.<anonymous> (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\chrome-launcher.js:170:27)
    at Generator.next (<anonymous>)
    at C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\chrome-launcher.js:13:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\chrome-launcher.js:9:12)
    at Launcher.launch (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\chrome-launcher.js:156:16)
    at Object.<anonymous> (C:\Users\TrevorSullivan\scoop\persist\nodejs\bin\node_modules\lighthouse\node_modules\chrome-launcher\dist\chrome-launcher.js:48:24)
    at Generator.next (<anonymous>)

What is the expected behavior?

lighthouse runs successfully

Environment Information

  • Affected Channels: CLI
  • Lighthouse version: 6.2.0
  • Chrome version: chrome.exe points to Chromium 84.0.4147.125 (Official Build) (64-bit)
  • Node.js version: v14.8.0
  • Operating System: Windows 10 version 2004

Related issues

GoogleChrome/lighthouse#847

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions