I'm trying to create PDF's from HTML in a Function, and right now I am getting this error
Error: Could not find Chrome (ver. 119.0.6045.105). 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: /root/.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at ChromeLauncher.resolveExecutablePath (file:///usr/local/server/src/function/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:262:27)
at ChromeLauncher.executablePath (file:///usr/local/server/src/function/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:213:25)
at ChromeLauncher.computeLaunchArguments (file:///usr/local/server/src/function/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:107:37)
at async ChromeLauncher.launch (file:///usr/local/server/src/function/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:53:28)
at async Module.default (file:///usr/local/server/src/function/src/main.js:15:19)
at async execute (/usr/local/server/src/server.js:141:22)
at async /usr/local/server/src/server.js:158:13
which makes sense, but I changed the command
npm install && npx puppeteer browsers install chrome and that ran, but it still doesn't know, so do I need to set the location or cache location? Anyone done this yet?