How to Save 4GB by Pointing Puppeteer and Playwright to System Chrome
Browser automation tools like Puppeteer and Playwright silently download gigabytes of Chromium builds even when Google Chrome is already installed on a machine. On macOS, these cached browser builds can collectively consume more than 4 GB of disk space across separate cache directories. Developers can redirect both tools to use the system-installed Google Chrome instead — via an environment variable for Puppeteer and a channel setting for Playwright. This approach works across Puppeteer, Playwright Test, Playwright CLI, and Playwright MCP, covering most local development scenarios. The technique is intended as a local optimization and is not a substitute for Playwright's pinned browser builds used in production or CI environments.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in