Problem With Puppeteer (NPM, Node JS)

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!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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