Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

525
Views
I get the error: Error: Failed to launch the browser process! when trying to run puppeteer with user data dir

I have a script that works fine when I use it normally without any arguments but I want it to run in a user specified browser so I don't have to log in every time. if I use:

const browser = await puppeteer.launch({executablePath: '/Volumes/Google Chrome/Google Chrome.app/Contents/MacOS/Google Chrome', userDataDir: '/Users/{myUserName}/Library/Application Support/Google/Chrome', headless: false, args: ['--disable-gpu', '--disable-setuid-sandbox', '--no-sandbox', '--no-zygote']});
        
const page = await browser.newPage();

return page;

I received: Error: Failed to launch the browser process!

But when I don't use a user data directory my script works fine. So my question is how can I make it so that my script works on the specified user. I got the executable path from, chrome://version.

Thanks in advance

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!