dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Getting "Runtime error encountered: No Chrome installations found." on running Lighthouse command

Open Dbroug01 opened this issue 6 years ago • 3 comments

I have tried to run this as per the README and also tried to build a new image based on the Dockerfile, but in both instances, I am getting: "Runtime error encountered: No Chrome installations found." when I try to run your example Lighthouse command.

Do you know why this would be and how I can fix it?

Dbroug01 avatar Nov 12 '19 12:11 Dbroug01

I've pushed a small fix for this; it should build successfully now (at least in my test runs it now does).

If you're still having issues building and running, feel free to reopen and let me know what platform you're building on.

justinribeiro avatar Nov 19 '19 16:11 justinribeiro

I'm still getting this issue when I try to run the Lighthouse command. The Dockerfile builds and drops to CLI perfectly, but it cannot find Chrome still, here is the error message:

Runtime error encountered: No Chrome installations found.
Error
    at new LauncherError (/usr/lib/node_modules/lighthouse/node_modules/chrome-launcher/dist/utils.js:35:22)
    at new ChromeNotInstalledError (/usr/lib/node_modules/lighthouse/node_modules/chrome-launcher/dist/utils.js:66:9)
    at Launcher.<anonymous> (/usr/lib/node_modules/lighthouse/node_modules/chrome-launcher/dist/chrome-launcher.js:146:27)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/lighthouse/node_modules/chrome-launcher/dist/chrome-launcher.js:9:58)

I am running this on WSL2, do you think that could be affecting this?

Thanks,

Darcey

edit: I'm not able to reopen the issue as a repo collaborator closed it

Dbroug01 avatar Dec 10 '19 12:12 Dbroug01

Humm, yeah, I'm not having this issues on any of my linux deploys; let me fire up WSL2 and see what's cooking.

justinribeiro avatar Dec 10 '19 16:12 justinribeiro