Required Dependencies to run Puppeteer in Ubuntu

When I was trying to use Puppeteer in my Ubuntu VPS, It gave some stranger error mentioning some dependencies are missing.

But I’m sure that I have installed the Puppeteer globally.

If you also facing the same error, you can install the dependencies by following the steps below.

Update the apt-get repository

sudo apt-get update

Then run the below command to install the dependencies

Install the dependencies

sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb libgbm-dev

Once installed you’re ready to go.

If you still facing issues, Feel free to comment below.

2 thoughts on “Required Dependencies to run Puppeteer in Ubuntu”

Leave a Comment