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

puppeteer is not working



I have this code:

const puppeteer = require("puppeteer"); const URL = ""; (async () => { const browser = await puppeteer.launch({ ignoreDefaultArgs: ['--disable-extensions'], headless: false, slowMo: 50, args: ["--no-sandbox", "--disable-setuid-sandbox"] }); const page = await browser.newPage(); page.goto(URL); })();

but I having Error:

/home/runner/puppeteer-test/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197 reject(new Error([ ^ Error: Failed to launch the browser process! /home/runner/puppeteer-test/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: cannot open shared object file: No such file or directory TROUBLESHOOTING: at onClose (/home/runner/puppeteer-test/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197:20) at Interface.<anonymous> (/home/runner/puppeteer-test/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:187:68) at Interface.emit (node:events:406:35) at Interface.close (node:readline:586:8) at Socket.onend (node:readline:277:10) at Socket.emit (node:events:406:35) at endReadableNT (node:internal/streams/readable:1331:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)

How can I fix this?

1 year ago
You are viewing a single comment. View All