Home > OS >  Puppeteer error: failed to launch the browser process?
Puppeteer error: failed to launch the browser process?

Time:10-14

I am trying to run puppeteer on my new laptop however I am getting this error:

node:8144) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/mnt/c/Users/juliu/repos/kmj-sniper/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory

What am I missing here? Thanks

CodePudding user response:

The error message indicates you are missing the ATK library (libatk).

What platform your laptop is running will likely determine the answer. If you are running Ubuntu, for example, you could do the following, or similar:

$ sudo apt-get install libatk-bridge2.0-0

On CentOS/RHL:

$ yum install atk.x86_64

CodePudding user response:

delete node_modules (don't delete the package.jsonand package-lock.json) and then run npm i
it will essentially reinstall all your dependencys
if that dosen work then try alex's answer

  • Related