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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.