Skip to content

Commit e6c636e

Browse files
committed
Added a few handles require by puppeteer to work on Ubuntu under root account
1 parent f77618d commit e6c636e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ A command line tool that checks your web page's dependencies, what percentage of
55
Clone or download the repository and run `yarn` in it.
66

77
## Dependencies
8-
The app has been tested only on a macOS High Sierra and has the followind dependencies:
8+
The app has been tested on macOS High Sierra and Ubuntu 17.10. It has the followind dependencies:
99
- availability of `/bin/bash`
1010
- availability of `yarn` command on `/bin/bash`
1111
- availability of `whois`command on `/bin/bash`
1212
- node version >= 9.3.0
1313
- a good network connection
1414

15+
If you're running this on Ubuntu puppeteer requires a few dependencies. More of them can be read from [here](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md).
16+
1517
## How to use
1618
Basic test.
1719
```

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const iPadPro = devices['iPad Pro landscape'];
1515

1616
utils.startTime('Test duration')
1717
utils.log('Starting the test...')
18-
const browser = await puppeteer.launch()
18+
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']})
1919
const page = await browser.newPage()
2020
await page.emulate(iPadPro)
2121

0 commit comments

Comments
 (0)