From 93a92a7238fa526370f8050d8c06346a529b74a1 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 10 Nov 2026 09:32:07 -0800 Subject: [PATCH 1/2] docs(readme): require playwright 1.59+ for the local cli fallback Refs: https://github.com/microsoft/playwright/issues/44031 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fc3a26f..5e581e8 100644 --- a/README.md +++ b/README.md @@ -422,13 +422,13 @@ playwright-cli kill-all # forcefully kill all browser processes ### Local installation -If global `playwright-cli` command is not available, try a local version via `npx playwright cli`: +If global `playwright-cli` command is not available, try a local version via `npx playwright cli`. It needs Playwright 1.59 or newer: ```bash -npx --no-install playwright --version +npx --no-install playwright cli list ``` -When local version is available, use `npx playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command: +When the command succeeds, use `npx --no-install playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command: ```bash npm install -g @playwright/cli@latest From 5c0504b08e024bdf66c3ce699f1ce661f1583d4b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 10 Nov 2026 09:58:06 -0800 Subject: [PATCH 2/2] docs(readme): keep the original local version check --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e581e8..6dc26d5 100644 --- a/README.md +++ b/README.md @@ -425,10 +425,10 @@ playwright-cli kill-all # forcefully kill all browser processes If global `playwright-cli` command is not available, try a local version via `npx playwright cli`. It needs Playwright 1.59 or newer: ```bash -npx --no-install playwright cli list +npx --no-install playwright --version ``` -When the command succeeds, use `npx --no-install playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command: +When local version is available, use `npx playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command: ```bash npm install -g @playwright/cli@latest