Thank you for this, it got me unstuck. Do you know if installing the latest Google Chrome could lead to problems if using an older version of Puppeteer? How to avoid this?
Yep, puppeteer is tested with a specific version of Chromium, details here: pptr.dev/chromium-support.
Also in each release you can see that version: github.com/puppeteer/puppeteer/rel....
You can check the available version starting a container with:
docker run --rm -it node:18-slim bash
And then these commands for chromium or google-chrome-stable:
chromium
google-chrome-stable
$ apt-get update && apt list --all-versions chromium # Add the apt repo for Google Chrome $ apt update && apt install curl gnupg -y \ && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt update $ apt list --all-versions google-chrome-stable
For node:18-slim you'll see this output:
node:18-slim
google-chrome-stable/stable 104.0.5112.101-1 amd64 chromium/stable-security 104.0.5112.101-1~deb11u1 amd64 chromium/stable 103.0.5060.53-1~deb11u1 amd64
Just look for a puppeteer version that works fine with the given Chromium version.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for this, it got me unstuck. Do you know if installing the latest Google Chrome could lead to problems if using an older version of Puppeteer? How to avoid this?
Yep, puppeteer is tested with a specific version of Chromium, details here: pptr.dev/chromium-support.
Also in each release you can see that version: github.com/puppeteer/puppeteer/rel....
You can check the available version starting a container with:
And then these commands for
chromiumorgoogle-chrome-stable:For
node:18-slimyou'll see this output:Just look for a puppeteer version that works fine with the given Chromium version.