docker-puppeteer icon indicating copy to clipboard operation
docker-puppeteer copied to clipboard

Could not find browser revision 809590

Open Arcens opened this issue 5 years ago • 2 comments

Hello,

Thank you for this library. However, I have trouble. When I try your docker and I try to launch puppeteer, I have the following message, puppeteer docker

In my package.json I have declared puppeteer with version 5.2.1. And I instantiate puppeteer with the following code const browser = await puppeteer.launch({ args: [ // Required for Docker version of Puppeteer "--no-sandbox", "--disable-setuid-sandbox", // This will write shared memory files into /tmp instead of /dev/shm, // because Docker’s default for /dev/shm is 64MB "--disable-dev-shm-usage", ], });

Thank you for your support

Arcens

Arcens avatar Nov 08 '20 15:11 Arcens

You might need to set the PUPPETEER_EXECUTABLE_PATH ENV variable in your dockerfile.

I used the following value, but you might want to reference the local version include in node_modules with the puppeteer install.

ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/google-chrome-stable"

viglucci avatar Nov 13 '20 22:11 viglucci

@viglucci Thanks! This solved the same issue for me 😄

olaven avatar Jan 17 '21 11:01 olaven