Puppeteer Error: Chromium revision is not downloaded

前端 未结 8 511
谎友^
谎友^ 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:40

    By default, the puppeteer module will run its install script (node install.js). However, in my case, I enabled ignore-scripts=true in my ~/.npmrc file, so it was never executed.

    In that case, you have to run the command yourself:

    node node_modules/puppeteer/install.js
    

    To check: node_modules/puppeteer/.local-chromium/linux-/ should exist now.

提交回复
热议问题