Labels

Java (10) Spring (10) Spring MVC (6) Web Services (5) Rest (4) Javascript (3) Nodejs (3) Spring Batch (3) Angular (2) Angular2 (2) Angular6 (2) Expressjs (2) Passportjs (2) SOAP (2) SOAPUI (2) Spring Boot (2) AJAX (1) H2 (1) JQuery (1) JUnit (1) Npm (1) Puppeteer (1) Python (1) RaspberryPi (1) Raspbian (1) SQL (1) SQLite (1) Scripts (1) html (1)
Showing posts with label RaspberryPi. Show all posts
Showing posts with label RaspberryPi. Show all posts

Tuesday, November 13, 2018

Make puppeteer work with raspbian (vers. octover 2018)

Recently I have many problems installing puppeteer on my Raspberry pi 3 B. After a hard struggle I was able to configure it.
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: