Playwright · infra · fg-0314

Cached Playwright browsers in CI fail with 'Host system is missing dependencies to run browsers'

If you see Host system is missing dependencies to run browsers, the cause and the fix for Playwright are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Host system is missing dependencies to run browsers.Failures start only on cache-hit runs that skip npx playwright install --with-depsExecutable doesn't exist after a version bump because the cache key ignores the Playwright version
Cause
A cache can restore the browser folder but not the system libraries that install --with-deps adds through apt. Playwright's docs advise against caching browsers for that reason.
Fix
Drop the cache and run install --with-deps every time, or key the cache on the exact Playwright version and still run install-deps on a cache hit.
Apply
- run: npx playwright install --with-deps # if you keep a cache, still run this on a hit: - run: npx playwright install-deps
Affected
All Playwright versions on GitHub Actions and other CI runners
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun