diff --git a/lib/chromium.js b/lib/chromium.js index 50937e7d..1a0f3a26 100644 --- a/lib/chromium.js +++ b/lib/chromium.js @@ -62,6 +62,9 @@ module.exports = function (b, opts) { if (opts.chrome) { options.executablePath = opts.chrome; + } else if (process.env.PUPPETEER_EXECUTABLE_PATH) { + // Workaround for https://github.com/puppeteer/puppeteer/issues/6957 + options.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH; }