Puppeteer Error: Chromium revision is not downloaded

前端 未结 8 504
谎友^
谎友^ 2021-02-04 01:31

I used npm i puppeteer as stated in the Documentation and I\'m getting the following error:

(node:2066) UnhandledPromiseRejectionWarning: Error: Chr

8条回答
  •  臣服心动
    2021-02-04 01:51

    Confirming solutions presented here almost work. Here's my setup. Ubuntu 16.

    Install chromium browser from command line then:

        const browser = await puppeteer.launch({
            executablePath: "/usr/bin/chromium-browser",
            args: ['--no-sandbox']
        });
    

提交回复
热议问题