Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Puppeteer Issues on Oracle Linux 8 #454

Open
nobu-sh opened this issue Jun 11, 2021 · 2 comments
Open

Puppeteer Issues on Oracle Linux 8 #454

nobu-sh opened this issue Jun 11, 2021 · 2 comments

Comments

@nobu-sh
Copy link

nobu-sh commented Jun 11, 2021

Hiya, I am sorta new to linux so this may be a very dumb question but I am unable to build on Oracle Linux 8.

My config is simply:

new PrerenderSPAPlugin({
      staticDir: path.join(__dirname, 'dist'),
      routes: ['/'],
    }),

and I am getting this error

Error: Failed to launch chrome!
/home/opc/project/web/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: /home/opc/project/web/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: cannot execute binary file


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/home/opc/project/web/node_modules/puppeteer/lib/Launcher.js:348:14)
    at Interface.<anonymous> (/home/opc/project/web/node_modules/puppeteer/lib/Launcher.js:337:50)
    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:1329:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[Prerenderer - PuppeteerRenderer] Unable to start Puppeteer
/home/opc/project/web/node_modules/@prerenderer/renderer-puppeteer/es6/renderer.js:140
    this._puppeteer.close()
                    ^

TypeError: Cannot read property 'close' of null
    at PuppeteerRenderer.destroy (/home/opc/project/web/node_modules/@prerenderer/renderer-puppeteer/es6/renderer.js:140:21)
    at Prerenderer.destroy (/home/opc/project/web/node_modules/@prerenderer/prerenderer/es6/index.js:87:20)
    at /home/opc/project/web/node_modules/prerender-spa-plugin/es6/index.js:144:29
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What I Have Tried

Error: Unable to find a match: cup-libs

I am very lost and was hoping someone could guide me in the correct direction

EDIT: Btw I am also on an ARM-based processor

@musakanneh
Copy link

npm install puppeteer - this should work!

@sonicwong
Copy link

sonicwong commented Jul 4, 2022

try this:
sudo yum install libdrm libgbm libxshmfence -y

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants