Chrome Launcher – Node.js Tool to Start Chrome
chrome-launcher is a Node.js utility that finds or downloads a Chrome/Chromium binary and launches it with debugging flags for automated tests and headless workflows.
chrome-launcher is a Node.js module that automates starting a Chrome/Chromium binary for testing and automation. It locates a Chrome executable or downloads one, then launches it with debugging flags for CDP connections used by Puppeteer and Playwright.
The module abstracts binary discovery and startup, supplying the caller with the launched process, port, and options. It enables headless or headed Chrome sessions and cleans up the browser when the Node process ends.
Quick Fact: chrome-launcher helps test runners quickly bootstrap Chrome without manual binary management.
Yes, chrome-launcher is safe when installed from the official npm registry and used as intended with legitimate scripts and projects.
The real chrome-launcher npm package is not a virus. It is a legitimate tool published by Google for automating Chrome launches.
C:\Projects\MyApp\node_modules\chrome-launcher or a local workspace. Global installs appear under C:\Users\\AppData\Roaming\npm\node_modules\chrome-launcher ."name": "chrome-launcher" and the author as Google. Confirm the version matches the npm registry.C:\Program Files\Google\Chrome\Application\chrome.exe or C:\Program Files (x86)\Google\Chrome\Application\chrome.exe when launching. Ensure these binaries exist.package-lock.json or npm-shrinkwrap.json integrity hashes to ensure the package contents are authentic.Red Flags: If chrome-launcher appears outside the project workspace, or if the package.json shows unexpected authors, or if the launcher runs without a script invoking it, treat as suspicious and audit dependencies.
chrome-launcher runs to start a Chrome/Chromium browser instance as part of automated tests or scripts. It is not a persistent background service by itself.
Reasons it's running:
Yes, you can disable chrome-launcher usage. It is safe to remove the launcher from your project dependencies if you no longer need automated Chrome launches.
If chrome-launcher isn’t behaving as expected, check these typical problems and fixes specific to the launcher that starts Chrome for automation.
Quick Fixes:
1. Quick Fixes:
2. 1. Run npm ci to recover exact dependencies including chrome-launcher
3. Set executablePath to a known Chrome binary in your script
4. Remove and re-add chrome-launcher to refresh metadata
5. Update to the latest chrome-launcher version
6. Review CI logs for failed chrome-launcher steps
chrome-launcher starts a Chrome/Chromium binary from Node.js for automated tests (Puppeteer/Playwright). It handles binary location, downloading, and startup flags.
Install with npm install chrome-launcher or add it to your package.json dependencies; then require('chrome-launcher') in your test scripts.
chrome-launcher provides a launched Chrome instance that Puppeteer can connect to via CDP; pass executablePath from chrome-launcher to Puppeteer's connect option.
Yes, stop invoking it in your code or remove the dependency. Ensure CI or local scripts do not launch chrome-launcher.
Specify CHROME_PATH or executablePath in your script; ensure a compatible Chrome/Chromium binary is installed on your system.
Yes, when installed from npm and configured properly; verify integrity via package-lock.json and ensure only trusted pipelines run the launcher.