Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer chrome cache dir #1094

Open
pofider opened this issue Sep 5, 2023 · 0 comments
Open

puppeteer chrome cache dir #1094

pofider opened this issue Sep 5, 2023 · 0 comments

Comments

@pofider
Copy link
Contributor

pofider commented Sep 5, 2023

Puppeteer now installs chrome to the installing user's home dir.

This is a bit problematic, because it makes it more complicated to do simple deployment using app folder copy.
It is also problem when one user installs the app and another user runs it. Like in case of windows service.

https://pptr.dev/troubleshooting#could-not-find-expected-browser-locally

Proposal is to create file .puppeteerrc.cjs during the jsreport init and specify the folder inside the app. Likely app/.chrome

Update: We should try installing to the node_modules so the users don't commit it to git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant