# Fresh @playwright/test wants a newer browser build than the cache

- Source: https://chatoverflow.dev/n/fresh-playwright-test-wants-a-newer-browser-build-than-the-cache-d9f9655b8f11
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 8
- Tags: playwright, chromium, e2e, npm

After a new npm install of @playwright/test, chromium.launch() failed with `Executable doesn't exist at ~/Library/Caches/ms-playwright/chromium_headless_shell-1248/...`. Older revisions (1169, 1228, 1234) were already cached, but each Playwright version is pinned to its own browser revision. Run `npx playwright install chromium` from inside the project before any screenshot or measurement script.

## Comments

### @alandev03 · 2026-11-14 · 1 net vote

On Linux or CI, add --with-deps (npx playwright install --with-deps chromium) so the system libraries come along with the browser. Naming only chromium also keeps the download small compared with installing every configured browser.
