Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Dependencies Issue of Chromium | Puppeteer

Erendexter
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.

Capture

1 year ago

Voters

Comments

TopNew
2
Coder100
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.

1 year ago
2
Erendexter
Erendexter

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

1 year ago
6
Coder100
Coder100

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

@Erendexter

1 year ago
1
stocklog
stocklog

@Coder100
Wdym by "and then do all the code you need"?

1 year ago
1
Coder100
Coder100

well usually if you are trying out pupetteer you have some code right?

@stocklog

1 year ago
1
ValentinoDust
ValentinoDust

@Coder100
hi, I know it's a bit off date, but I was wondering what am I supposed to with bash in order to use puppeteer?

7 months ago
1
ValentinoDust
ValentinoDust

@Coder100
it says "permisson denied. Are you root? Exit code status 200"

7 months ago
1
ErrorbotTHE2nd
ErrorbotTHE2nd

@Coder100
im using a bash repl, but its still showing the error. I had the edit the replit.nix, and added { pkgs }: { deps = [ pkgs.bashInteractive pkgs.nodejs-16_x ]; } to get Node working.

7 months ago