docs(troubleshooting): Adding Travis CI mention (#2334)

This commit is contained in:
Matt Gaunt 2018-04-09 14:34:46 -07:00 committed by Andrey Lushnikov
parent 717d4a7ada
commit a052b9e774

View File

@ -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