How to install puppeteer on Amazon Linux 2023

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 15

  • @rameshmanickam3144
    @rameshmanickam3144 10 місяців тому +1

    You are a true savior 🙏

  • @vgvishesh2008
    @vgvishesh2008 Рік тому

    Awesome, this saved me tons of time and effort. Cheers mate!

  • @satyadeepm
    @satyadeepm Рік тому

    Thank you so so much!!! This solved the problem.

  • @OlegNikitin-bd6pf
    @OlegNikitin-bd6pf 2 місяці тому

    Step of chrome installing is missing
    Error: Could not find Chrome (ver. 128.0.6613.119). This can occur if either
    1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install ${browserType}`) or
    2. your cache path is incorrectly configured (which is: /home/ec2-user/.cache/puppeteer).

  • @hamidtahir6634
    @hamidtahir6634 8 місяців тому

    Yo are such a savior man
    Thanks

  • @dev2Novi
    @dev2Novi Рік тому

    works, thanks bro

  • @mike-wm9ji
    @mike-wm9ji Рік тому

    worked ty

  • @Agora_BoardGames
    @Agora_BoardGames Рік тому

    worked!

  • @syncsteve
    @syncsteve Рік тому

    Thanks!

  • @htetnaungnaung2297
    @htetnaungnaung2297 Рік тому

    I just did like your steps and it still show the error

    • @legendsmnd
      @legendsmnd  Рік тому

      what error does it show?

    • @dionyborges132
      @dionyborges132 Рік тому

      @@legendsmndPresent this error:
      E: Unable to locate package libXcomposite
      E: Unable to locate package libXdamage
      E: Unable to locate package libXrandr
      E: Unable to locate package libgbm
      E: Unable to locate package libxkbcommon
      E: Unable to locate package pango
      E: Unable to locate package alsa-lib
      E: Unable to locate package atk
      E: Unable to locate package at-spi2-atk
      E: Unable to locate package cups-libs
      E: Unable to locate package libdrm

  • @abelmurua6980
    @abelmurua6980 Рік тому

    I had the same error, I followed the same steps but I keep getting the same error (my AWS ElasticBeanslkta is running => Node.js 18 running on 64bit Amazon Linux 2023/6.0.3).
    What could it be? Amazon Linux 2023 its on 64 bit, could that be the reason? ( :/):
    /home/ec2-user/node_modules/@puppeteer/browsers/lib/cjs/launch.js:271
    reject(new Error([
    ^
    Error: Failed to launch the browser process!
    /home/ec2-user/.cache/puppeteer/chrome/linux-119.0.6045.105/chrome-linux64/chrome: /home/ec2-user/.cache/puppeteer/chrome/linux-119.0.6045.105/chrome-linux64/chrome: cannot execute binary file

    • @legendsmnd
      @legendsmnd  Рік тому

      I'm not sure, this tutorial only fixes the issue where Amazon Linux 2023 is missing the necessary dependencies for puppeteer. What I'd try is a previous version of puppeteer to see if that works. If that doesn't work, you should also try to just run the minimum amount of code for puppeteer to function and see if any other code is messing with it.

    • @abelmurua6980
      @abelmurua6980 Рік тому

      @@legendsmnd I gave up after I read a comment from the developers saying that it wouldn’t work on a 64 bit machine because some libraries that puppeteer uses weren’t upgraded for 64 bits yet. So had to do it using html2canvas and jsPdf. Thank you for replying though!