Failed to launch the browser process! spawn /usr/bin/google-chrome-stable ENOENT\n\n\nTROUBLESHOOTING:

Viewed 64

here is my sample code , this code execute in local without executablePath. But when pass a executablePath and push to elastic beanstalk server then i got this error.

strong text how do i reslove it?const browser = await puppeteer.launch({     headless: true,   executablePath: '/usr/bin/chromium',     IgnoreHTTPSErrors: true,     args: ["--no-sandbox", "--disable-setuid-sandbox", "--disable-gpu", "--ignore-certificate-errors"],   });

1 Answers

Your executablePath may be wrong, it should be:

executablePath: '/usr/bin/chromium-browser'
Related