From a052b9e7740fdc6648ca5241614d10cc29e99fc3 Mon Sep 17 00:00:00 2001 From: Matt Gaunt Date: Mon, 9 Apr 2018 14:34:46 -0700 Subject: [PATCH] docs(troubleshooting): Adding Travis CI mention (#2334) --- docs/troubleshooting.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 0f8c55b9..9b4ccc89 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -92,6 +92,13 @@ xorg-x11-fonts-misc ```js const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']}); ``` +## Running Puppeteer on Travis CI + +To run headless Chrome on Travis, you *must* call `launch()` with flags to disable Chrome's sandbox, like so: + +```js +const browser = await puppeteer.launch({args: ['--no-sandbox']}); +``` ## Running Puppeteer in Docker