Spiritix\Html2Pdf\ConverterException
Binary error: [1m[43m[30m
Puppeteer old Headless deprecation warning:[0m[33m
In the near future `headless: true` will default to the new Headless mode
for Chrome instead of the old Headless implementation. For more
information, please see https://developer.chrome.com/articles/new-headless/.
Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.[0m
file:///var/www/vendor/spiritix/php-chrome-html2pdf/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:259
throw new Error(`Could not find Chrome (ver. ${this.puppeteer.browserRevision}). This can occur if either\n` +
^
Error: Could not find Chrome (ver. 121.0.6167.85). This can occur if either
1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
2. your cache path is incorrectly configured (which is: /var/www/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at ChromeLauncher.resolveExecutablePath (file:///var/www/vendor/spiritix/php-chrome-html2pdf/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:259:27)
at ChromeLauncher.executablePath (file:///var/www/vendor/spiritix/php-chrome-html2pdf/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:204:25)
at ChromeLauncher.computeLaunchArguments (file:///var/www/vendor/spiritix/php-chrome-html2pdf/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:97:37)
at async ChromeLauncher.launch (file:///var/www/vendor/spiritix/php-chrome-html2pdf/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:44:28)
at async Converter.run (file:///var/www/vendor/spiritix/php-chrome-html2pdf/lib/Converter.js:35:25)
at async file:///var/www/vendor/spiritix/php-chrome-html2pdf/index.js:23:20
Node.js v20.11.1
Pls how do i resolve this?