Puppeteer Error: Chromium revision is not downloaded

前端 未结 8 531
谎友^
谎友^ 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条回答
  •  旧时难觅i
    2021-02-04 01:46

    If someone still facing this problem again. Then goto node_modules folder then into puppeteer and in lib where you find launch.js open the same file and search for executablepath then change its null value to your chrome or chromium desired path.

    For me the path as follows :

    /home/Nightwing/node_modules/puppeteer/Launcher.js

提交回复
热议问题