Fixing the Playwright “Chromium distribution ‘chrome’ is not found” Error with channel: ‘chrome’
A test that sets channel: 'chrome' in the Playwright config fails with Chromium distribution 'chrome' is not found because Playwright looks for Google Chrome at a fixed path and cannot find it. Unlike the Chromium that Playwright normally uses, Google Chrome is not installed by npx playwright install alone. You can either install Chrome (the official command is npx playwright install chrome), or, if the test does not need Chrome, remove channel and the error goes away. It appears when you run an E2E test that specifies Chrome on a PC or server where Google Chrome is not installed.
The test environment was Ubuntu 24.04, Node.js 22.23.5, @playwright/test 1.63.0 (Chromium 158.0.8127.36, headless), and TypeScript 5.9.3. Google Chrome was not installed in the test environment, and I could not reach the Chrome download host (dl.google.com), so I did not confirm that npx playwright install chrome installs Chrome successfully. For the "file exists" case, I used a link that launches Playwright's Chromium in place of Chrome. I did not test Windows or macOS, other channels such as chrome-beta, or Microsoft Edge (msedge).
Reproducing the error
In the config file, I wrote a single project with channel: 'chrome', following the example in the official documentation section on using Google Chrome and Microsoft Edge.
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
reporter: 'list',
projects: [
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' },
},
],
});
The test only passes HTML to the page and checks the heading.
// tests/hello.spec.ts
import { test, expect } from '@playwright/test';
test('見出しが表示される', async ({ page }) => {
await page.setContent('<h1>猫の手カウンター</h1>');
await expect(page.getByRole('heading', { level: 1 })).toHaveText('猫の手カウンター');
});
When I ran it without Google Chrome installed, it failed at the point of launching the browser. The exit code was 1.
$ npx playwright test
Running 1 test using 1 worker
✘ 1 [Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される (2ms)
1) [Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される ─────────────────────────────────────────
Error: browserType.launch: Chromium distribution 'chrome' is not found at /opt/google/chrome/chrome
Run "npx playwright install chrome"
Error Context: test-results/hello-見出しが表示される-Google-Chrome/error-context.md
1 failed
[Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される ──────────────────────────────────────────
The message means: the Chromium-based browser chrome was not found at /opt/google/chrome/chrome, and you should run npx playwright install chrome. A script that called chromium.launch({ channel: 'chrome' }) directly, without a test, also stopped with the same two-line message.
Where Playwright looks for Chrome
In the Playwright 1.63.0 source, the file that gets launched when channel: 'chrome' is set has a fixed path for each OS.
| OS | Path searched |
|---|---|
| Linux | /opt/google/chrome/chrome |
| macOS | /Applications/Google Chrome.app/Contents/MacOS/Google Chrome |
| Windows | Google\Chrome\Application\chrome.exe under folders given by environment variables such as LOCALAPPDATA and PROGRAMFILES |
Playwright checks whether a file exists at that path (on Windows, it checks the candidate locations in order). If none is found, it throws an error that includes the first path. It does not look for a google-chrome command on PATH. In the test environment, when I removed only /opt/google/chrome/chrome while a google-chrome command was still on PATH, I got the same error.
![Diagram of how the channel setting changes which browser is launched. If channel is not written in playwright.config.ts's use (only devices['Desktop Chrome']), the Chromium that npx playwright install placed is launched. If channel: 'chrome' is written, Playwright checks /opt/google/chrome/chrome. If the file exists, it is launched. If not, nothing is launched and the error "Chromium distribution 'chrome' is not found at /opt/google/chrome/chrome" is raised](https://neko-note.org/wp-content/uploads/2026/11/playwright-chrome-channel-not-found-chrome-channel-flow.png)
The official documentation also says that Playwright can run tests with the Google Chrome and Microsoft Edge installed on the machine, but does not install them by default. Running npx playwright install installs Playwright's own Chromium, not Google Chrome.
Fix: install Google Chrome
If you need to test with Chrome, install it. The official documentation says that if Chrome or Edge is not installed, you can install it with a Playwright command. This is the command shown in the error message.
$ npx playwright install chrome
On Linux, this command runs a shell script bundled with Playwright (reinstall_chrome_stable_linux.sh). The 1.63.0 script did the following:
- Stops if the OS is not Ubuntu or Debian (it also stops on Arm64 Linux)
- If the
google-chromepackage is already installed, removes it withapt-get remove - Runs
apt-get update - Downloads the stable Chrome
.debfile from dl.google.com withcurland installs it withapt-get install - Prints the output of
google-chrome --version
Because the script uses apt-get, it requires administrator privileges. In the Playwright source, when the command is run as a non-root user, the script is run through sudo (or su if sudo is not available).
When I ran it in the test environment, it got as far as apt-get update, but it could not connect to dl.google.com and ended with the message below (exit code 1; I omitted the earlier output).
…(前略)
curl: (56) CONNECT tunnel failed, response 403
Failed to install browsers
Error: Failed to install chrome
In an environment that cannot connect to dl.google.com, this command will not install Chrome. In that case, you need to install Chrome another way, or remove channel as described in the next section.
The official documentation states that Chrome installed with this command goes to the OS's standard location and overwrites any Chrome already installed there. If you run it on a PC you use daily, the Chrome on that PC will be reinstalled.
If a file exists at that path, the error does not appear
I could not install Chrome in the test environment. However, that environment already had a link at /opt/google/chrome/chrome that launches Playwright's Chromium. Up to this point in my testing, I had moved that link to another name to simulate a missing Chrome, so I put it back. With the config file unchanged (still channel: 'chrome'), the test ran without the error and passed.
$ npx playwright test
Running 1 test using 1 worker
✓ 1 [Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される (374ms)
1 passed (1.5s)
In this case, browser.version() returned 158.0.8127.36, the same as Chromium. The Playwright source only checks whether a file exists at that path. It does not verify that the file is real Google Chrome. The fact that the error went away only shows that a file exists there.
Remove channel and run with Playwright's Chromium
If the test does not need Chrome, removing channel is the quickest fix.
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
reporter: 'list',
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});
devices['Desktop Chrome'] sets the screen size and User-Agent to match Chrome. It does not launch Chrome. If channel is not specified, the Chromium installed by npx playwright install is launched. With this config and Chrome not installed, the test passed.
$ npx playwright test
Running 1 test using 1 worker
✓ 1 [chromium] › tests/hello.spec.ts:3:5 › 見出しが表示される (106ms)
1 passed (562ms)
The official documentation explains that Playwright's Chromium is generally the right choice. Stable builds such as Chrome are for cases where you must verify against the browsers that are currently distributed, or where you need video or audio codecs that are not included in Chromium.
When only the Chrome project fails
In a config with two projects, chromium and Google Chrome, only the Chrome project failed with the same error, and the chromium test passed. Because the overall exit code is 1, CI treats the run as failed.
$ npx playwright test
Running 2 tests using 2 workers
✘ 2 [Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される (2ms)
✓ 1 [chromium] › tests/hello.spec.ts:3:5 › 見出しが表示される (236ms)
…(中略)
1 failed
[Google Chrome] › tests/hello.spec.ts:3:5 › 見出しが表示される ──────────────────────────────────────────
1 passed (740ms)
If you do not have Chrome locally but want to verify with Chrome in CI, you can run only the chromium project locally with --project. With this option, the Chrome project did not run, and the tests passed (exit code 0).
$ npx playwright test --project=chromium
Running 1 test using 1 worker
✓ 1 [chromium] › tests/hello.spec.ts:3:5 › 見出しが表示される (113ms)
1 passed (663ms)
For a similar error that occurs when the browser binary itself is missing, see How to fix Playwright's "Executable doesn't exist" error. That error happens when channel is not set and Playwright's own Chromium is missing.





