Running Puppeteer usingg Bash Repl

After searching on google for hours I am still unable to run a simple app to take screenshot of webpage using puppeteer in a Bash Repl. I am repeatedly getting this error. Can anyone help?

/home/runner/HarmfulSeveralQuery/node_modules/@puppeteer/browsers/lib/cjs/launch.js:262
reject(new Error([
^

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

TROUBLESHOOTING: Troubleshooting | Puppeteer

at Interface.onClose (/home/runner/HarmfulSeveralQuery/node_modules/@puppeteer/browsers/lib/cjs/launch.js:262:24)
at Interface.emit (node:events:525:35)
at Interface.close (node:readline:590:8)
at Socket.onend (node:readline:280:10)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
2 Likes

you need to add the nix chrome package

Having the same issue (chromium and chrome driver packages are installed). @missingsemicolo where you able to find a solution for this issue?