Skip to content

Explicitly install Chrome version required by Puppeteer in CI#197

Merged
sanason merged 3 commits into
developfrom
install-browser-in-ci
Jun 23, 2026
Merged

Explicitly install Chrome version required by Puppeteer in CI#197
sanason merged 3 commits into
developfrom
install-browser-in-ci

Conversation

@sanason

@sanason sanason commented Jun 23, 2026

Copy link
Copy Markdown
Member

Fix the tests that are failing here with error message:

Error: Could not find Chrome (ver. 128.0.6613.119). This can occur if either
1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install ${browserType}) or
2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.

Two parts to this fix:

  1. Add a CI step to explicitly install the browser version required by Puppeteer. Previously, this was handled by a postinstall script in the puppeteer package. However, recent versions of npm have started to disable install scripts by default. See discussion here.
  2. Update the puppeteer version. After adding the CI step, I encountered the bug described here. Upgrading puppeteer fixed the problem.

@sanason sanason merged commit 1a5050c into develop Jun 23, 2026
5 checks passed
@sanason sanason deleted the install-browser-in-ci branch June 23, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant