diff --git a/.travis.yml b/.travis.yml index 21b16050..f3b981dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ node_js: - "7" dist: trusty env: + - DISABLE_CHROMIUM_SANDBOX=true cache: yarn: true directories: diff --git a/lib/Browser.js b/lib/Browser.js index e6452462..c8a7f922 100644 --- a/lib/Browser.js +++ b/lib/Browser.js @@ -51,6 +51,8 @@ class Browser { `--disable-gpu`, ]); } + if (process.env['DISABLE_CHROMIUM_SANDBOX']) + this._chromeArguments.push('--no-sandbox'); if (typeof options.executablePath === 'string') { this._chromeExecutable = options.executablePath; } else {