Site icon CodeRevolution Knowledge Base

How to install Puppeteer Globally on Centos?

Step 1: Install Node JS in CentOS 

sudo curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
sudo yum install nodejs 

Step 2 : Install Chromium dependencies in CentOS 

sudo yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc 

Step 3 : Install Puppeteer in CentOs

sudo npm install -g puppeteer --unsafe-perm=true

 

 

Exit mobile version