Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

526
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda