I recently transitioned from my desktop to a laptop, and I’m encountering the following issue whenever I attempt to execute a Puppeteer script:
(node:69) UnhandledPromiseRejectionWarning: TimeoutError: Unable to connect to the browser within 30000 ms! Only Chrome version r901912 is supported.
at Timeout.onTimeout (/path/to/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:208:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:69) UnhandledPromiseRejectionWarning: A promise rejection occurred without a proper .catch() handler or an async function lacked a catch block. Use the CLI flag `--unhandled-rejections=strict` to handle unhandled promise rejections. (rejection id: 1)
(node:69) [DEP0018] DeprecationWarning: Unmanaged promise rejections will lead to the termination of Node.js processes in future versions.
How can I resolve this error?