Install Chrome for Puppeteer

“Could not find Chrome (ver. 150.0.7871.24)” means Puppeteer cannot locate the Chrome browser it is trying to launch. In most projects, the fastest repair is to download the browser configured for that installed Puppeteer version, then run a small launch test. Do not begin by installing the newest desktop Chrome available: a different browser build may not satisfy Puppeteer’s configured revision.

Use this quick match to choose the right repair.

Symptom Likely Cause Fix
You installed puppeteer, but no browser is present Dependency install scripts were blocked or skipped Run Puppeteer’s browser installer manually
Your project uses puppeteer-core The core package never downloads Chrome Install or provide a browser and set executablePath
It works locally but fails on GCP, Docker, or CI The browser cache was not included in the runtime environment Install the browser during the image or deployment build
Puppeteer reports a cache path that does not contain Chrome The browser was installed as a different user or in a different cache directory Download the browser as the same user that runs the application

What the Puppeteer Chrome Error Means

Puppeteer controls a browser through Chrome’s DevTools Protocol. The full puppeteer package normally installs a compatible Chrome for Testing build alongside its JavaScript library setup. That browser is managed separately from your application source code and is usually stored in Puppeteer’s browser cache.

The error appears before Puppeteer opens a page. It does not mean a selector failed, a website blocked your script, or ChromeDriver is out of date. It means Puppeteer resolved the browser revision it needs, here, 150.0.7871.24, but cannot find the executable in its expected cache location.

This commonly happens when:

  • A package manager blocks dependency lifecycle scripts.
  • Dependencies were installed with scripts disabled.
  • A Docker build downloaded Chrome under one user, but the application runs under another.
  • A deployment process copied node_modules but not Puppeteer’s browser cache.
  • The project uses puppeteer-core without an explicit browser path.

How to Fix the Missing Chrome Error

Running npx puppeteer browsers install downloads the browser revision expected by your installed Puppeteer package, and a smoke test confirms it launches.

Step 1: Download the Browser Required by Your Installed Puppeteer Version

Open a terminal in the project directory that contains your package.json, then run:

npx puppeteer browsers install

This uses the locally installed Puppeteer configuration to download its required browser or browsers. It is the safest first fix because it targets the browser revision expected by your installed package rather than downloading an arbitrary Chrome release.

Puppeteer provides this installer as part of its installation workflow. It is especially useful after an install where browser-download scripts were blocked.

If the command completes successfully, do not point your code at a separate system Chrome yet. First confirm that Puppeteer can launch its managed browser.

Step 2: Run a Browser Launch Smoke Test

Create a file named check-puppeteer.mjs in the project root:

import puppeteer from 'puppeteer';
const browser = await puppeteer.launch();
try {
  console.log(await browser.version());
} finally {
  await browser.close();
}

Run it with Node:

node check-puppeteer.mjs

A successful command prints the launched browser version and exits cleanly. That confirms the downloaded browser is available to the same Node process that will run your application.

If this test still produces the missing-Chrome error, do not keep downloading newer Chrome releases. Check whether the project uses puppeteer-core, whether install scripts are blocked, or whether the app runs under a different user account or container stage.

Stop Package Managers From Blocking the Browser Download

Modern package-manager configurations can block dependency install scripts. When Puppeteer’s install script does not run, the JavaScript package is installed but its compatible browser is not, causing a runtime error later.

With npm’s allowScripts control, add puppeteer to the project’s allowScripts entry in package.json, then install the package normally:

npm i puppeteer

The full puppeteer package downloads compatible Chrome during installation. Allowing the install script prevents the missing-browser state from being created in the first place.

Manual browser installation remains useful when:

  • Your organization intentionally blocks dependency scripts.
  • You are restoring dependencies from a cache.
  • Your CI system uses a restrictive package-manager policy.
  • You updated Puppeteer and need the matching browser downloaded during a later build step.

Treat Puppeteer and its managed Chrome as one deployable unit: updating one without making the other available creates this error.

Choose Between Puppeteer, Puppeteer Core, and System Chrome

Complete Puppeteer manages a compatible Chrome build automatically, while puppeteer-core does not download Chrome and requires a browser supplied by your environment.

Full Puppeteer Installs Compatible Chrome

For most browser automation projects, install the complete Puppeteer package:

npm i puppeteer

This is the simplest option because Puppeteer downloads and launches the compatible Chrome build automatically. It also avoids depending on a developer’s locally installed Chrome version or a browser version supplied by a cloud environment.

Use this package when your app simply calls puppeteer.launch() and you want Puppeteer to manage browser compatibility.

Puppeteer Core Requires a Browser You Supply

The puppeteer-core package installs only the automation library. It does not download Chrome:

npm i puppeteer-core

Using puppeteer-core does not fix a missing-browser error by itself. It can use a browser available in your environment, depending on how you configure it.

import puppeteer from 'puppeteer-core';
const browser = await puppeteer.launch({
  executablePath: process.env.CHROME_EXECUTABLE,
});
try {
  console.log(await browser.version());
} finally {
  await browser.close();
}

Set CHROME_EXECUTABLE to the complete path of an existing Chrome or Chromium executable. It must point to the executable file itself, not the Chrome application folder or Puppeteer cache directory.

This approach is useful when your organization manages Chrome separately, but it shifts version compatibility and browser updates onto your deployment process.

Installing the Latest Chrome Is a Different Goal

If you intentionally need the latest available Chrome rather than the browser configured by Puppeteer, use the browser-management CLI:

npx @puppeteer/browsers install chrome

That command is appropriate when you plan to manage the resulting browser yourself, usually by passing its executable path to puppeteer-core.

The CLI can also select the latest available Chrome build within a milestone. For example, this requests the latest available Chrome for Testing build in milestone 150:

npx @puppeteer/browsers install chrome@150

Milestone selection applies to Chrome for Testing builds, not Chromium snapshot builds. It is not the best first response to an error requesting exactly 150.0.7871.24, because the latest build in milestone 150 may not be the exact revision your installed Puppeteer package expects. For that error, use Puppeteer’s standard browser installer first.

Fix Missing Chrome in Docker, GCP, and CI

A cloud deployment can succeed through dependency installation but still fail at runtime when the browser download is missing from the final environment.

When install scripts are blocked, manually download the required browsers. Copying application files or restoring only Node dependencies may leave the browser behind.

In a Dockerfile, run the browser installer after dependencies are installed and in the final runtime image layer:

# After copying package.json and package-lock.json
RUN npm ci
RUN npx puppeteer browsers install

Build and run the image using the same user account that will launch Node. If the browser is downloaded as root during the build but the application later runs as an unprivileged user, that user may look in a different home-directory cache and report that Chrome is missing.

For GCP, the same principle applies whether you use Cloud Run, a container-based service, or a CI-driven deployment:

  1. Install dependencies during the build phase.
  2. Run Puppeteer’s browser installer during that same build phase if install scripts are blocked or unreliable.
  3. Ensure the final artifact contains the browser cache available to the runtime user.
  4. Run a launch smoke test in the built environment before deploying it.

I reproduce browser-launch failures in a clean container because it removes machine-specific caches and installed-browser state from the diagnosis.

If Chrome downloads successfully but the container fails with missing shared libraries or sandbox-related launch errors, that is a separate Linux browser-runtime problem. Resolve the missing-Chrome error first; then address the operating-system dependencies reported by the new error.

Confirm Where Puppeteer Installed Chrome

Run puppeteer.executablePath() to identify the executable Puppeteer expects in the current environment. The exact location can differ when the process runs as another user, in a container, or with a custom cache configuration.

To print the exact executable path Puppeteer expects and verify that it exists, create check-browser-path.mjs:

import fs from 'node:fs';
import puppeteer from 'puppeteer';
const executablePath = puppeteer.executablePath();
console.log(`Expected executable: ${executablePath}`);
console.log(
  fs.existsSync(executablePath)
    ? 'Browser found'
    : 'Browser missing'
);

Run the check:

node check-browser-path.mjs

If the path is missing, run the browser installer as the same user that runs this command. In Docker and hosted environments, make sure that means the final runtime user, not merely the user active in an earlier build stage.

If the path exists but puppeteer.launch() fails, save the new error message. At that point, Puppeteer has found Chrome and the problem is likely related to OS libraries, sandboxing, permissions, or launch arguments rather than browser installation.

Frequently Asked Questions

How can I install Chrome for Puppeteer?

Install Puppeteer’s configured browser from the project directory with this command:

npx puppeteer browsers install

This downloads the browser revision expected by the installed Puppeteer package. It is usually preferable to downloading a separate desktop Chrome release because Puppeteer can then resolve its own managed executable.

Does Puppeteer need Chrome installed?

The full puppeteer package needs a compatible browser available, and it normally downloads one during package installation. The puppeteer-core package does not download Chrome, so it requires an existing Chrome or Chromium executable supplied through executablePath.

Where does Puppeteer install Chromium or Chrome?

Current Puppeteer versions normally place managed browser files in a user-level cache, often $HOME/.cache/puppeteer. The reliable way to find the exact expected executable is to call puppeteer.executablePath() from the same environment and user account that runs your application.

Why does Puppeteer work locally but not on GCP?

Your laptop may already contain Puppeteer’s browser cache, while the GCP runtime starts from a clean filesystem or a different user account. Install the browser during the deployment build, preserve it in the final runtime artifact, and verify a Puppeteer launch before shipping the image.