Report this

What is the reason for this report?

Problem With Puppeteer (NPM, Node JS)

Posted on January 4, 2021
Chirag Artani

By Chirag Artani

I am Chirag Artani - A Blogger

Hello, Hope you are doing well.

I had a problem with puppeteer while starting NPM it says browser not able to start etc. And making some changes to fix this issue server is not responding maybe RAM is not enough to run it.

So my question is how to run puppeteer easily without facing this browser issue and which plan would be reliable to run puppeteer easily?

Note: Using this for creating an API (Scraping).

Thank You. Regards

  • Chirag Artani!


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @chirag99artani,

This error shouldn’t be related to RAM at all, it seems like some dependencies are missing. I take it you have some sort of the following code

const browser = await puppeteer.launch({
  executablePath: '/usr/bin/chromium-browser'
})

where you launch a browser, is that correct?

If so, can you let me know which browser you are trying to launch? Additionally, make sure you have that browser installed.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.