Enola Holmes
Enola Holmes

Reputation: 73

How to solve Puppeteer: failed to launch the browser process

Installed Puppeteer using the command : npm install puppeteer OS : CentOs7 3.10.0-693.11.6.el7.x86_64 When I tried to run the file, I am getting the following error

(node:14216) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! /opt/xyz/node-v14.16.0-linux-x64/lib/node_modules/npm/node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory

How to solve this error ?

Upvotes: 5

Views: 10451

Answers (1)

pavelsaman
pavelsaman

Reputation: 8322

It says what is missing:

error while loading shared libraries: libxkbcommon.so.0

You need to have the library on your system. It seems this is the one, you might be able to install it with your package manager:

# yum install libxkbcommon-x11

Upvotes: 8

Related Questions