Libgobject-2.0.so.0 error

Error: Error: Failed to launch the browser process!
/home/runner/.cache/puppeteer/chrome/linux-114.0.5735.133/chrome-linux64/chrome: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory

When i tried installing the library, I am getting this error:

sudo: The “no new privileges” flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

Command I used in Shell: sudo apt install libglib2.0-0

I need this library for my repl. Please help.

Hey @thourcs, welcome to the community!

You can’t use sudo in Replit. Try running the same command without sudo.

2 Likes

add it via Nix, using the out output since it’s available and you want a shared object: in Shell:

sed -i 's/];/  pkgs.glib.out\
  &/' replit.nix
3 Likes

I just want to use chromium in my Node.js file, can you help with that?

Has anyone found a solution for this issue?

this repl will help you to run puppeteer

index.js - puppeteer (1) - Replit