title: Could not find expected browser chrome locally
body: <p>This Meteor code uses &quot;puppeteer 8.0.0&quot;, &quot;puppeteer-core 10.0.0&quot;, puppeteer-extra 3.1.18&quot; and &quot;puppeteer-extra-plugin-stealth 2.7.8&quot;, It gives this error:</p>
  <blockquote>
  <p>Error: Could not find expected browser (chrome) locally. Run <code>npm install</code> to download the correct Chromium revision (884014).</p>
  </blockquote>
  <p>Tried &quot;npm install&quot; for no avail. Reading up online, tried removing &quot;puppeteer-core&quot;: &quot;^10.0.0&quot; from package.json dependencies for no avail.</p>
  <p>Any help is much appriciated. Thanks</p>
  <pre class="lang-js prettyprint-override"><code>const puppeteer = require('puppeteer-extra');
  const nameH = require('./NameH');
  
  const puppeteerOptions = {
      headless: true,
      ignoreHTTPSErrors: true,
      args: ['--no-sandbox', '--single-process', '--no-zygote', '--disable-setuid-sandbox']
  }
  
  let browser;
  let pageNameH;
  
  const init = async () =&gt; {
      const StealthPlugin = require('puppeteer-extra-plugin-stealth');
      console.log('1')         //&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Prints 1
      puppeteer.use(StealthPlugin());
      console.log('2')         //&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Prints 2
      
      browser = await puppeteer.launch(puppeteerOptions);
      console.log('3') //&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; DID NOT PRINT &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
      pageNameH = await browser.newPage();
      console.log('4')
  
      await pageNameH.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36');
      await pageNameH.setViewport({ width: 1366, height: 768 });
      await pageNameH.setRequestInterception(true);
      blockResources(pageNameH);
  }
  
  const blockResources = page =&gt; {
      page.on('request', (req) =&gt; {
      if (req.resourceType() == 'stylesheet' || req.resourceType() == 'font' || req.resourceType() == 'image') {
          req.abort();
      }
      else {
          req.continue();
      }
      });
  }
  
  
  export const abc = async (nm, loc) =&gt; {
      try {
      console.log('name try')       //&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Prints &quot;name try&quot;
      if (!(browser &amp;&amp; pageNameH))
          await init();
      //use &quot;required&quot; nameh here
  
      } catch (error) { // print the error &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
      console.log(&quot;Could not launch Puppeteer or open a new page.\n&quot; + error);
      if (browser &amp;&amp; browser.close === 'function') await browser.close();
      }
  }
  
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>
  // included in package.json
  &quot;dependencies&quot;: {
      &quot;@babel/runtime&quot;: &quot;^7.11.2&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;check&quot;: &quot;^1.0.0&quot;,
      &quot;cheerio&quot;: &quot;^1.0.0-rc.6&quot;,
      &quot;jquery&quot;: &quot;^3.5.1&quot;,
      &quot;meteor-node-stubs&quot;: &quot;^1.0.1&quot;,
      &quot;nightmare&quot;: &quot;^3.0.2&quot;,
      &quot;pending-xhr-puppeteer&quot;: &quot;^2.3.3&quot;,
      &quot;puppeteer&quot;: &quot;^8.0.0&quot;,
      &quot;puppeteer-core&quot;: &quot;^10.0.0&quot;,
      &quot;puppeteer-extra&quot;: &quot;^3.1.18&quot;,
      &quot;puppeteer-extra-plugin-adblocker&quot;: &quot;^2.11.11&quot;,
      &quot;puppeteer-extra-plugin-block-resources&quot;: &quot;^2.2.9&quot;,
      &quot;puppeteer-extra-plugin-stealth&quot;: &quot;^2.7.8&quot;
  },
  </code></pre>