title: How to fix "Failed to launch chrome!"
body: <p>I'm trying to make a query to a website with puppeteer and I get error:</p>
  
  <pre><code>Error: Failed to launch chrome!
  [0711/174138.253701:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
  </code></pre>
  
  <p>I've tried to give the followings arguments to</p>
  
  <pre><code>puppeteer.launch(args: ['--disable-setuid-sandbox'])
  puppeteer.launch(args: ['--no-sandbox'])
  </code></pre>
  
  <p>But it doesn't work. It looks like a browser problem. I don't know what to do</p>
  
  <p>My code: </p>
  
  <pre><code>const puppeteer = require('puppeteer');
  const url = "https://www.google.com.ar";
  
  (async () =&gt; {
    try{
      const navegador = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']}); //Lanzo el chrome
      const pestaña = await navegador.newPage();//abro una nueva pestaña
      await pestaña.goto(url); //paso la url
  
      let tabla = await pestaña.evaluate(() =&gt; {
  
        const titulos = [
          ...document.querySelectorAll(".descrip_container")
        ].map((map_titulo) =&gt; map_titulo.innerText);
        //los "..." hace que en la pestaña se abra la consola
        const precios = [
          ...document.querySelectorAll(".atg_store_newPrice")
        ].map((map_precio) =&gt; map_precio.innerText);
  
        return productos.map((titulo, i) =&gt; ({titulos: titulo, precios: precios[i]}));
      })
      console.log(tabla);
  
  
      await navegador.close();
  
    }
    catch(error){
      console.log(error);
    }
  })();
  </code></pre>