Problems in the use of puppeteer

Why does node js have the following error when calling the puppeteer module

(node:4960) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Chromium revision is not downloaded. Run "npm install" or "yarn install"
(node:4960) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
after I run npm install, it still doesn"t work

Jun.23,2021

Chromium revision is not downloaded. Chromium download failed, see if there are any errors in npm install


chromium is now
npm i chromium

to be downloaded separately.
Menu