DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
browser automation

How to Fix Playwright install-deps When It Fails

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If npx playwright install-deps fails, first identify whether the problem is an unsupported Linux distribution, insufficient privileges, a proxy or TLS issue, or a package-manager error. Those causes need different fixes. The command installs operating-system libraries; it does not download the Playwright browser binaries. For both tasks together, use npx playwright install --with-deps chromium on a supported Linux system.

What install-deps does—and what it does not do

Playwright browsers need system libraries in addition to the browser binaries managed by Playwright. The install-deps command installs those operating-system dependencies. You can install dependencies for all supported browsers with npx playwright install-deps, or target one browser, such as Chromium, with npx playwright install-deps chromium. The combined command npx playwright install --with-deps chromium installs Chromium and its dependencies.

That distinction is useful when diagnosing a failure. A Linux package manager error during install-deps points to the operating-system dependency step. A browser archive download error points to downloading the browser itself, even if the command you ran combines both steps.

Start with the operating system, architecture, and Playwright version

Playwright’s supported operating systems vary by release. Do not assume that an older statement about Linux support still applies to the version you are using. Current release notes list Debian 12 Bookworm as supported for Chromium, Firefox, and WebKit on both x86_64 and arm64. That does not establish support for every Debian release, Linux distribution, or architecture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Lenovo Business Laptop - Linux Mint (Cinnamon) - Intel i5-1335U, 16GB RAM, 256GB SSD, 15.6" FHD 1920x1080 Display, Full Keyboard, Fast Charging
  • Intel Core i5-1335U Processor (12M Cache, 12 Threads, up to 4.6 GHz) - 256GB Solid State Drive - 16GB DDR4 SDRAM
  • 15.6" FHD (1920x1080) Non-Touch Anti-Glare Display - Intel UHD 620 Integrated Graphics - Stereo Speakers
  • 720p HD Webcam with Privacy Shutter. Integrated Microphone - Intel Dual Band Wireless-AC (2x2) 8265, Bluetooth Version 4.2
  • I/O Ports: 2x USB 3.0, 1x USB 3.1 Type-C 3.1, Headphone/Mic Combo Port, 4-in-1 Card Reader, HDMI, Kensington Mini-Lock Slot
  • Linux Mint (Cinnamon) 64-Bit - Keyboard with Full NumberPad - Fast Charging

Before changing package lists or retrying with elevated privileges, record the exact environment. On Linux, check the distribution and version with cat /etc/os-release, and check the architecture with uname -m. Check the Playwright version used by your project with npx playwright --version. In a Node.js project, also confirm which Playwright package is installed; the command run through npx should match the version your tests use.

  • If the distribution and architecture are listed as supported for your Playwright release, continue to privilege, proxy, and package-manager checks.
  • If they are not listed, do not assume a package list from Ubuntu or Debian will work. Use a supported environment, such as a compatible Playwright Docker image, or investigate the package requirements for your distribution.
  • If the environment was recently upgraded, check that the Playwright package and the system image are a supported combination rather than relying on an old CI image.

Run dependency installation with the required privileges

Installing operating-system packages usually requires root privileges. Run the command with the privilege model used by your system. On a Linux machine where sudo is configured, a basic Chromium dependency install is:

sudo npx playwright install-deps chromium

In a container or CI job already running as root, run the command directly rather than adding sudo. If the process is neither root nor able to elevate privileges, the package manager may fail to write to its system directories. The fix is to run the dependency-install step with the required privileges, not to repeatedly retry as an unprivileged user.

There is an important exception when a proxy is involved: passing a proxy variable before sudo does not necessarily preserve it for the command that runs as root. Use the documented environment-variable placement:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

sudo HTTPS_PROXY=https://192.0.2.1 npx playwright install-deps

Rank #2
HP 17 Business Laptop - Linux Mint Cinnamon - Intel Quad-Core i5-10210U, 32GB RAM, 1TB PCIe NVMe SSD + 1TB Storage HDD, 17.3" Inch HD+ (1600x900) Display
  • Intel Core i5-10210U (up to 4.2GHz) - 1TB PCIe NVMe + 1TB HDD - 32GB DDR4 SDRAM
  • 17.3" HD+ (1600x900) Display, Intel UHD Graphics 620
  • Built in HD 720p Webcam with Microphone - Bluetooth Version4.2
  • I/O Ports: 2x USB 3.1 (Data Only), 1x USB 2.0, 1x HDMI, 1x Headphone/Microphone Combo Jack
  • Linux Mint Cinnamon 64-Bit - 6-Row Keyboard w/ Full Numberpad

Replace the example proxy address with the proxy URL used in your environment. Playwright warns that without root, it may attempt to become root and fail to pass HTTPS_PROXY to the Linux package manager. Explicitly setting the variable on the elevated command helps keep the proxy configuration available during package installation.

Fix proxy and certificate failures during browser downloads

Dependency installation and browser download are separate stages, and an enterprise proxy can affect either. First identify which stage produced the error. Package-manager output about repositories or packages is not the same failure as a browser archive download error.

Self-signed certificate in the chain

If the browser download reports Error: self signed certificate in certificate chain, a proxy may be intercepting TLS with a custom certificate authority that Node.js does not trust. Set NODE_EXTRA_CA_CERTS to the trusted PEM-encoded root certificate supplied by your organization, then run the install command. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

export NODE_EXTRA_CA_CERTS=/path/to/company-root-ca.pem
npx playwright install chromium

Use the actual certificate path provided by your administrator. Do not disable certificate verification as a workaround: that removes a security check instead of configuring trust correctly.

Rank #3
Panasonic Toughbook CF-31 MK5 Rugged Laptop, 13.1in i5, 8GB 256GB (Renewed)
  • [ULTRA-RUGGED DESIGN] MIL-STD-810G and IP65 certified. Built to survive 6-foot drops, heavy rain, and extreme vibrations. Features a magnesium alloy chassis with an integrated carry handle for maximum portability
  • [4G LTE - WORK ANYWHERE] Integrated 4G LTE Multi-Carrier Mobile Broadband. Stay connected to the internet in remote areas or on the road without relying on Wi-Fi or phone hotspots. True mobile freedom for field professionals
  • [1200-NIT SUNLIGHT READABLE] 13.1" XGA Touchscreen with CircuLumin technology. At 1200 nits, it is nearly 4x brighter than a standard laptop, ensuring perfect visibility under direct, intense sunlight
  • [LINUX UBUNTU PRE-INSTALLED] Fast, secure, and bloatware-free. Optimized for developers, network engineers, and diagnostic software that thrives in a stable, open-source environment
  • [LEGACY SERIAL PORT] Features a native RS-232 Serial Port, HDMI, and USB 3.0. Essential for connecting directly to industrial machinery, CNCs, and automotive diagnostic tools without unreliable adapter

Proxy variables are missing after elevation

If package downloads fail only when the install runs through sudo, check whether the root process receives the proxy settings. Put the variable on the elevated command, as in sudo HTTPS_PROXY=https://192.0.2.1 npx playwright install-deps. If your environment also requires an HTTP proxy or other proxy configuration, follow your organization’s proxy setup and verify which variables the package manager and the browser downloader need.

Increase the timeout for slow browser archives

A slow or intermittently stalled browser archive can exceed Playwright’s default download connection timeout. The Python browser documentation describes the default as 30 seconds and the setting as an idle timeout: it concerns how long the connection can remain without progress, not a guaranteed total limit for the entire download.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT to a larger value in milliseconds before installing the browser. For example, 120,000 milliseconds is two minutes:

PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=120000 npx playwright install chromium

This setting addresses a slow browser download. It does not fix unsupported distributions, missing root privileges, package-manager repository errors, or an untrusted TLS certificate. If the command still stalls, check network access, proxy configuration, and whether the browser archive host is reachable from the machine running the install.

Rank #4
Lenovo V15 Gen 4 - Business Laptop - AMD Ryzen 5 7430U - 15.6" FHD Display - 8GB RAM - 512GB SSD Storage - Integrated AMD Radeon™ Graphics - Webcam Privacy Shutter - Business Black
  • THE POWER TO STAY PRODUCTIVE – Looking to make your everyday work and home life more manageable without breaking the bank? The Lenovo V15 Gen 4 offers long-term reliability with top-of-the-line features to make you your most productive self.
  • CRUSH YOUR TO-DO LIST – The AMD Ryzen CPU pairs quiet performance and enhanced operating power to crush your high-demand workday. It optimizes performance and allows for seamless multitasking.
  • TRUE-TO-LIFE VISUALS – The 15.6” FHD IPS display is anti-glare with 300 nits brightness to see your best outside or in. Its 88% screen-to-body ratio makes viewing detailed applications like spreadsheets a breeze.
  • SEAMLESS COLLABORATION – Lenovo Smart Appearance enhances your camera effects to protect your privacy and to make you the focus of every video conference. Intelligent noise cancelation minimizes distraction and Dolby Audio provides an elegantly sonorous experience.
  • BUILT TO WITHSTAND – Built for military-grade toughness, the V15 Gen 4 is tested to withstand harsh temperatures, pressure, humidity, vibrations and more. Keep your work safe from the board room to your living room and everywhere in between.

Diagnose package-manager errors without guessing package names

If apt or another package manager reports that a package cannot be found, record the complete error along with the operating-system release and architecture. Package names and availability depend on the distribution and its configured repositories. A dependency list that works on one supported release may not be valid on another.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Confirm the OS release and architecture using cat /etc/os-release and uname -m.
  2. Check whether that combination is supported by the Playwright version in the project.
  3. Inspect the package-manager output to identify the specific missing package and repository error.
  4. Verify that the distribution’s package repositories are configured and reachable, then use the package name and repository appropriate to that distribution.
  5. If the environment is outside Playwright’s supported matrix, move the job to a supported image or use a compatible Playwright Docker image instead of layering an unverified package list onto the host.

A message that a package is unavailable can mean the repository is missing or unreachable; it does not by itself prove that Playwright requested an invalid package. Preserve the full output so you can distinguish those cases.

Make the install repeatable in CI

For Linux CI agents, Playwright’s CI guidance recommends using its Docker image or installing dependencies through the CLI. The GitHub Actions example uses npx playwright install --with-deps. The combined command is convenient when a job needs the browser and its operating-system libraries on the same run.

Install in a CI job

For a Chromium-only job on Linux, a typical dependency-and-browser step is:

npx playwright install --with-deps chromium

Choose the browser your tests actually use. Installing only Chromium avoids installing dependencies and browser binaries for browsers the job does not run. If the project tests Firefox or WebKit as well, install those browsers explicitly or use the all-browser command appropriate to the project.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Lenovo IdeaPad Slim 3 Linux Laptop, 15.6" FHD Touchscreen Laptop, 8-Core AMD Ryzen 7 5825U, 16GB RAM, 512GB SSD, Keypad, SD Card Reader, Stylus Pen + External Portable SSD + USB Hub, Linux Ubuntu OS
  • Powerful Linux Laptop: This IdeaPad Slim 3 Laptop comes pre-installed with Ubuntu Linux, offering fast performance, robust security, and a clean, user-friendly experience. Enjoy full customization, seamless hardware compatibility, and access to thousands of open-source apps. Whether you're working, creating, or coding, it's built to keep up with everything you do.
  • A Multitasking Master: The latest AMD Ryzen 7 5825U processor (up to 4.5 GHz) delivers powerful performance with 8 cores and 16 threads for smooth multitasking. Integrated AMD Radeon Graphics provide crisp visuals for streaming, browsing, photo editing, and casual gaming. With smart machine intelligence, it adapts to your needs for a fast, responsive experience.
  • 15.6" Full HD Display: The IdeaPad Slim 3 boasts an 88% screen-to-body ratio for a floating, edge-to-edge visual experience. TÜV Low Blue Light certification reduces eye strain, making it perfect for long work or study sessions.
  • Military-Grade Durability: The smart IdeaPad Slim 3 combines portability and durability, letting you work, study, and play on the go. With a profile 10% slimmer than the previous generation, it's lightweight yet military-grade rugged, ready for anything, anywhere.
  • Versatile Connectivity: Enjoy the security of a built-in webcam with a privacy shutter. Connect effortlessly with multiple ports: 2x USB A, 1x USB C, 1x HDMI, 1x SD Card Reader, 1x Headphone/Microphone combo. Bundle comes with Stylus Pen, 256GB Portable SSD and 5-in-1 Docking Station.

Use a Playwright Docker image

A Playwright Docker image can make the operating-system and browser environment more consistent across CI runs than installing system packages on a changing host agent. Confirm that the image version matches the Playwright version in the project; a version mismatch can undermine the reproducibility the image is intended to provide. The right choice depends on the CI system and how much control you have over its runner.

Keep logs useful

  • Log the Playwright version, operating-system release, and architecture.
  • Keep the complete package-manager or browser-download error rather than only the final failure line.
  • Make proxy and CA configuration available to the same process that performs the installation.
  • Separate dependency installation from browser installation when investigating failures, then combine them with --with-deps once the environment works.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose the command that matches the task

Goal Command What it installs
Install dependencies for Playwright browsers npx playwright install-deps Operating-system dependencies
Install dependencies for Chromium only npx playwright install-deps chromium Operating-system dependencies for Chromium
Install Chromium and its dependencies npx playwright install --with-deps chromium Chromium browser and its operating-system dependencies
Install a browser with a longer download idle timeout PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=120000 npx playwright install chromium Chromium browser, with a 120,000 ms download connection timeout

Common failure symptoms and fixes

Symptom Likely cause What to try
Permission denied or package manager cannot write system files The command is not running with the privileges needed to install system packages. Run it with the required root privileges, or use a CI/container environment already running as root.
Proxy works for the user but not for the elevated install The proxy variable was not passed to the root process or package manager. Set it on the elevated command, for example sudo HTTPS_PROXY=https://192.0.2.1 npx playwright install-deps.
Package manager cannot locate a dependency Unsupported OS/version, missing repository, or distribution-specific package availability. Record OS and architecture, check support for the installed Playwright release, and resolve the repository or use a supported image.
self signed certificate in certificate chain A custom proxy CA is not trusted by Node.js during browser download. Set NODE_EXTRA_CA_CERTS to the organization’s root certificate before the browser install.
Browser download times out while making slow progress The download exceeds the default idle timeout. Set PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=120000 and check network or proxy access.
Dependency command succeeds but tests say the browser is missing install-deps installed system libraries, not browser binaries. Run npx playwright install chromium or use npx playwright install --with-deps chromium.

Or skip the browser setup

If the task is to capture website screenshots rather than run browser automation tests, a screenshot API can avoid installing and maintaining a local Playwright browser environment. ScreenshotNeo is a website screenshot API and MCP server for developers. One GET request returns a PNG, JPEG, WebP, or PDF; see the ScreenshotNeo API documentation for options and response details.

The following cURL example saves a WebP screenshot of Stripe:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

With Python, the equivalent request is:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Or use Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo removes cookie or consent banners, newsletter popups, and chat widgets before capture; those cleanup steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, with response headers indicating the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.

Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.