Puppeteer Promise Rejection Error on New Laptop

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?

This issue may be related to missing or incompatible browser binaries on your new laptop. Double-check that Puppeteer is downloading the correct version of Chrome for its current version by ensuring no other Chrome installations conflict with paths. Try setting up the PUPPETEER_EXECUTABLE_PATH environment variable to point to the correct browser executable. Also, consider running a simple script to verify that Puppeteer can launch the browser properly. Keeping your Node.js and Puppeteer updated might also help resolve compatibility issues.