Skip to content

Instantly share code, notes, and snippets.

@hamzaafridi
Last active February 8, 2024 11:48
Show Gist options
  • Save hamzaafridi/ea231d3239fe742d938d868b0539468e to your computer and use it in GitHub Desktop.
Save hamzaafridi/ea231d3239fe742d938d868b0539468e to your computer and use it in GitHub Desktop.
Setting up Puppeteer on Debian arm64 node.js

To setup Puppeteer on Debian arm 64 do the following steps:

  1. 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
  1. 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
  1. Note this value and go inside your nodejs project.
  2. When installing puppeteer install like below
npm i puppeteer --ignore-scripts
  1. above will install puppeteer package without isntalling the chomium itself
  2. launch chromium as below
Puppeteer.launch({ args, headless: true, executablePath: "/usr/bin/chromium"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment