Playwright · tool · fg-0317

Installing with --only-shell or --no-shell, then launching in the other mode, fails with Executable doesn't exist

If you see Executable doesn't exist at .../chromium-1208/chrome-linux64/chrome after npx playwright install --only-shell, the cause and the fix for Playwright are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Executable doesn't exist at .../chromium-1208/chrome-linux64/chrome after npx playwright install --only-shellExecutable doesn't exist at .../chromium_headless_shell-1208/... after npx playwright install --no-shellHeaded debugging or channel: 'chromium' breaks on a CI image that runs headless tests fine
Cause
Playwright ships two Chromium builds: a headless shell for default headless runs and a full build for headed runs and the 'chromium' channel. Each flag skips one of them.
Fix
Match the install flag to how tests launch. Use --only-shell only when every run is headless with no channel, and --no-shell only when you set channel: 'chromium'.
Apply
# default headless only npx playwright install --with-deps --only-shell chromium # headed, or use: { channel: 'chromium' } npx playwright install --with-deps chromium
Affected
Playwright 1.49 and later (separate headless shell build)
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