Let us see how this can be done.
1. Install the last version of node
Raspbian comes with an old version of node, you will need a more recent one (10 for instance):
2. Install the necessary debian dependencies
here you have a gist with all the necessary ones.
3. Install chromium-browser 65 and its codecs
you will need to run:
you may need to run also this command to fix broken packages:
sudo apt-get --fix-broken install
4. Use the param executablePath when you launch puppeteer
When you launch puppeteer you will need to specify the path for your chrome-browser. You need to use the parameter executablePath for that. See this minimal example:
Thanks for sharing this information! I've converted all this logic sucessfully in a Dockerfile, and i'm running puppeteer succesfully (finally) on my rPi2! :-)
ReplyDeleteHi Brecht,
ReplyDeletecould you please share your dockerfile or push the docker image to dockerhub?
Thanks.
Hi Unknown,
ReplyDeleteI'm sorry for the late response.
Recently I had some troubles though using page.Click()
Meanwhile I rewrote the Dockerfile, which seems to be 100% functional right now (including page.Click() functionality)
You can find the Dockerfile @
https://github.com/brechtvm/puppeteer/blob/master/Dockerfile
Hope this helps!