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).
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
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.
@@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!
You are a true savior 🙏
Awesome, this saved me tons of time and effort. Cheers mate!
Thank you so so much!!! This solved the problem.
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).
Yo are such a savior man
Thanks
works, thanks bro
worked ty
worked!
Thanks!
I just did like your steps and it still show the error
what error does it show?
@@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
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
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.
@@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!