Playwright Executable Doesn't Exist: Install the Browsers

8 min readupdated November 18, 2026

You install Playwright, write your first test, run it, and nothing runs:

Error: browserType.launch: Executable doesn't exist at /Users/you/Library/Caches/ms-playwright/chromium_headless_shell-1228/chrome-headless-shell-mac-arm64/chrome-headless-shell
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated.       ║
║ Please run the following command to download new browsers: ║
║                                                            ║
║     npx playwright install                                 ║
║                                                            ║
║ <3 Playwright Team                                         ║
╚════════════════════════════════════════════════════════════╝

The number in the path changes with each Playwright release, so yours will be different. Playwright 1.58 and earlier print "Looks like Playwright Test or Playwright was just installed or updated."

From your project's folder, run:

npx playwright install

This downloads the browsers required by your installed Playwright version.

When npx playwright install fails

The install command stops before your tests run. Playwright 1.65.0 printed these lines when our download server returned 404:

Failed to install browsers
Error: Failed to download Chrome for Testing 158.0.8127.18 (playwright chromium v1254), caused by
Error: Download failure, code=1

We saw the same three lines when the server stopped responding. code=1 tells you the download failed. Read the earlier error to find out why.

On the machine where it failed, run this from your project folder:

npx playwright install --dry-run chromium

This prints the download URL and the cache folder. It does not download anything.

  • The download hangs. Check whether that machine can reach the printed URL. If the connection is slow, set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT to 120000 milliseconds and retry. A longer wait will not fix a 404.
  • It fails on a work network. Set HTTPS_PROXY to the proxy address your network team provides. If the proxy inspects HTTPS, set NODE_EXTRA_CA_CERTS to the trusted certificate file they provide. If your company hosts the downloads, check that its server has the exact ZIP. Playwright's network settings
  • The install finishes, but the test still cannot find the browser. Run the dry run as the account that runs the tests. Compare its cache folder with the error path. If you set PLAYWRIGHT_BROWSERS_PATH, use the same value for installation and testing. Browser cache locations
  • A Windows driver ZIP returns 404. playwright-1.57.0-win32_x64.zip contains the Playwright Go driver. Installing Chromium cannot replace it. The reported Windows URL still returned 404 when we checked. If you use Go, update the binding. If an app bundles it, check for an app update. Go driver release

Checked on macOS 15.4.1 on 12 November 2026. We used a local server for the failed browser downloads and checked the Windows ZIP separately.

First install: the browsers were not downloaded

Playwright is installed, but the first test reports Executable doesn't exist.

The package and its browser downloads are separate. Run the install command above before running your tests.

By default, Playwright stores the downloaded browsers outside your project:

  • macOS: ~/Library/Caches/ms-playwright
  • Linux: ~/.cache/ms-playwright
  • Windows: %USERPROFILE%\AppData\Local\ms-playwright

If your tests only use Chromium, you can install just that browser:

npx playwright install chromium

See the browser installation documentation for the available downloads.

When to install Chromium with --only-shell

If your Chromium tests run without a visible window, check the channel setting. When no channel is set, Playwright uses the headless shell. To install it without full Chromium, run:

npx playwright install chromium --only-shell

Our download also included FFmpeg, the tool Playwright uses to record video. If you run with --headed or set channel: 'chromium', you need full Chromium. Use npx playwright install chromium instead. Playwright's headless shell guide

After upgrading Playwright

Tests worked before the upgrade, but Playwright now reports a missing browser executable.

Each Playwright version requires specific browser builds. Your existing downloads may not match the new version.

After updating the project's dependencies, run:

npx playwright install

Playwright's update instructions include this browser download step.

A fresh CI machine or container

Tests work locally, but fail on a new runner with no browser cache.

Install the project's dependencies first. On a supported Linux runner, install browsers and system dependencies:

npm ci
npx playwright install --with-deps
npx playwright test

The --with-deps option installs browsers and the system libraries they need.

The official Playwright image includes browsers and system dependencies. Its version must match your project's Playwright version. See the Docker documentation.

Using the Chrome you already have

You do not have to use Playwright's build. If you want the real branded Google Chrome or Microsoft Edge, ask for the channel:

// playwright.config.ts
export default defineConfig({
  projects: [
    { name: 'chrome', use: { ...devices['Desktop Chrome'], channel: 'chrome' } },
  ],
});

That runs against the Chrome installed on the machine instead of a downloaded Chromium.

Worth knowing the trade before you reach for it. Chromium is the open source engine Chrome is built on, and Playwright's build is pinned, so everyone gets the same one. Branded Chrome updates itself on the machine's schedule, which means your test environment changes without you choosing it. Use the channel when you specifically need branded Chrome behaviour, such as certain media codecs, rather than by default.

Remember this

The Playwright package and browser downloads are separate. Run npx playwright install after setup or an upgrade. On a fresh Linux runner, use --with-deps to install system dependencies too.

Once it runs, the graded practice is the fastest way to find out whether the tests you write actually catch bugs: each one is run against a working app, then against a copy where the behaviour is broken.

Reference: Playwright browsers.

Put it into practice

Solve a graded problem: write a test, and we check it would catch a real bug.

Browse the problems →

Learn this in full

Reading about a problem is not the same as fixing one. Pick a lecture or a practice problem and write the test yourself.

Keep reading