install-chrome-dependencies

1.1.2 • Public • Published

Install Chrome Dependencies

Install Chrome dependencies using a one liner

This is a simple script that installs dependencies for running Chrome / Chromium. This is useful when running Chrome in a CI environment, for Example when using Puppeteer or Lighthouse.

Installation

npm install --save-dev install-chrome-dependencies

Usage

npx install-chrome-dependencies

It’s recommended to use Debian based Docker images, such as node:16-slim.

For Debian based images, all required dependencies are installed to run Chrome inside the Docker image.

For Alpine based images, chromium is installed. To use this with puppeteer, use the following environment variable.

PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

Package Sidebar

Install

npm i install-chrome-dependencies

Weekly Downloads

279

Version

1.1.2

License

LGPL-3.0-or-later

Unpacked Size

10.5 kB

Total Files

4

Last publish

Collaborators

  • ekhorn
  • remcohaszing
  • kvdb
  • appsemble-bot