You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install-browser is a no-op: always prints 'Browser ... is not installed' for the browser it was told to install #470
playwright-cli install-browser <browser> does not install anything and always answers as if it were the "not installed" error, on this machine and for every browser kind.
Reproduced 2026-09-19, macOS 25.5.0 arm64:
$ playwright-cli --version
1.59.0-alpha-1771104257000
$ playwright-cli open --browser=chromium https://example.com
Browser "chromium" is not installed. Run `playwright-cli install-browser chromium` to install
$ playwright-cli install-browser chromium
Browser "chromium" is not installed. Run `playwright-cli install-browser chromium` to install
Observed behaviour:
install-browser performs no download and exits with the "not installed" message for the browser it was told to install (the message even names chromium when invoked with firefox).
npx playwright install chromium succeeds and populates the standard cache (~/Library/Caches/ms-playwright/chromium-1243, chromium_headless_shell-1243), but playwright-cli open --browser=chromium still reports "chromium is not installed" — the alpha CLI appears to expect a different registry/revision or a daemon restart that playwright-cli kill-all does not fix.
Expected: install-browser chromium downloads the matching browser build and a subsequent open succeeds.
Workaround used: drive the same flows through the playwright npm package directly (npm i playwright && node script.mjs), which resolves chromium-1243 from the shared cache.
You're on @playwright/cli 0.1.1 (Feb). install-browser was broken in that build and has been fixed since. Upgrade with npm i -g @playwright/cli@latest (currently 0.1.21), then run playwright-cli install-browser chromium.
npx playwright install installs the browser for a different Playwright version (chromium-1243). The CLI bundles its own Playwright and needs its matching build, so installing through the CLI is the right way.
Activity
yury-s commentedon Sep 25, 2026
You're on @playwright/cli 0.1.1 (Feb).
install-browserwas broken in that build and has been fixed since. Upgrade withnpm i -g @playwright/cli@latest(currently 0.1.21), then runplaywright-cli install-browser chromium.npx playwright installinstalls the browser for a different Playwright version (chromium-1243). The CLI bundles its own Playwright and needs its matching build, so installing through the CLI is the right way.