Ask coding questions

← Back to all posts
Dependencies Issue of Chromium | Puppeteer
Erendexter

Hello everyone,

I am recently working on a fun project where I need to use 'puppeteer' as a browser automation tool. And after adding this package in my repl some error shows up saying,

"Failed to launch the browser process!
/home/runner/WhatsAppBot/node_modules/puppeteer/.local-chromium/linux-869685/chrome-linux/chrome: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory."

When I went to check the missing dependencies, I got a huge list containing those missing libraries. As I don't have the root permission, I couldn't able to install them.

Is there any way to solve this problem?

NOTE: I tried installing some previous versions of puppeteer and chromium but didn't work out for me.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Erendexter
Comments
hotnewtop
Coder100

the node language sucks, please use the bash language instead.
The node language is very very restricted, and doesn't contain the setup (VNC i believe) to run puppeteer.

Erendexter

@Coder100 Thanks. But I am new to Repl.it. Can you explain the solution in details?

Coder100

so basically
make a new bash repl
and then do all the code you need @Erendexter

Erendexter

@Coder100 Thanks!!