GitHub Actions / Linux CI Playwright Error: Host system is missing dependencies to run browsers

Chromium shared libraries (`libnss3`, `libgbm1`, `libasound2t64`) were not installed.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: GitHub Actions / Linux CI Playwright Error Platform: CI/CD
Common Root Causes:
  • Chromium shared libraries (`libnss3`, `libgbm1`, `libasound2t64`) were not installed.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Run `npx playwright install --with-deps chromium` in CI before executing Playwright tests.
Safe Diagnostic Command:
npx playwright install --with-deps chromium
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Chromium shared libraries (`libnss3`, `libgbm1`, `libasound2t64`) were not installed. Recommended diagnostic: `npx playwright install --with-deps chromium`. Remediation: Run `npx playwright install --with-deps chromium` in CI before executing Playwright tests.

Worked Examples

  • Run `npx playwright install --with-deps chromium` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-gha-playwright-missing-system-deps · Independently verified: 2026-11-25

Related Resources