Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://gitlab.com/appsemble/install-chrome-dependencies
Install Chrome dependencies using a one liner
https://gitlab.com/appsemble/install-chrome-dependencies
Last synced: 3 days ago
JSON representation
Install Chrome dependencies using a one liner
- Host: gitlab.com
- URL: https://gitlab.com/appsemble/install-chrome-dependencies
- Owner: appsemble
- License: other
- Created: 2020-04-22T14:14:30.524Z (over 4 years ago)
- Default Branch: main
- Last Synced: 2024-08-08T15:38:46.007Z (3 months ago)
- Stars: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://github.com/puppeteer/puppeteer) or
[Lighthouse](https://github.com/GoogleChrome/lighthouse).## Installation
```sh
npm install --save-dev install-chrome-dependencies
```## Usage
```sh
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.```sh
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
```