To setup Puppeteer on Debian arm 64 do the following steps:
- Open terminal and run the following commands
sudo apt update && sudo apt upgrade
sudo apt-get remove chromium-browser
sudo apt-get remove chromium
sudo apt-get install chromium
whereis chromium
- whereis chromium would tell you the path of installed chromium e.g.
chromium: /usr/bin/chromium /usr/lib/chromium /etc/chromium.d /etc/chromium /usr/share/chromium /usr/share/man/man1/chromium.1.gz
- Note this value and go inside your nodejs project.
- When installing puppeteer install like below
npm i puppeteer --ignore-scripts
- above will install puppeteer package without isntalling the chomium itself
- launch chromium as below
Puppeteer.launch({ args, headless: true, executablePath: "/usr/bin/chromium"})