title: how do you install and run puppeteer for firefox
body: <p>Hi I am doing some web automation. I am trying to open a url and I am getting a data URL error in chrome console so I am moving to firefox console to get around the no data urls opening in the chrome console issue. The problem is &quot;npm install puppeteer-firefox&quot; is not working to install puppeteer for firefox. How can I install puppeteer for firefox and include it in the code so I can use it?</p>
  <p><strong>Code not working in chrome because of data url error</strong></p>
  <pre><code>const url = await page.evaluate(async () =&gt; {
  
      
          document.querySelector('.n3VNCb').src;
          
      });
      
      url.toString();
      
      await page.goto(url);
  </code></pre>
  <p><strong>What I typed into node.js command prompt to install puppeteer firefox. This did not work</strong></p>
  <pre><code>npm i puppeteer-firefox
  </code></pre>
  <p><strong>Error I received from the node.js command prompt</strong></p>
  <blockquote>
  <p>npm WARN deprecated puppeteer-firefox@0.5.1: Firefox support is gradually transitioning to the
  puppeteer package. As of puppeteer v2.1.0 you can interact with Firefox Nightly. The puppeteer-firefox  &gt; package will remain available until the transition is complete, but it is no longer actively maintained.
  For more information visit <a href="https://wiki.mozilla.org/Remote" rel="noreferrer">https://wiki.mozilla.org/Remote</a></p>
  </blockquote>
  <blockquote>
  <p>puppeteer-firefox@0.5.1 install C:\Users\user\Desktop\filename\filename\node_modules\puppeteer-firefox
  node install.js</p>
  </blockquote>
  <blockquote>
  <p>ERROR: Failed to download Firefox rv0.0.1!
  Error: Download failed: server returned code 404. URL:
  <a href="https://github.com/puppeteer/juggler/releases/download/v0.0.1/firefox-win64.zip" rel="noreferrer">https://github.com/puppeteer/juggler/releases/download/v0.0.1/firefox-win64.zip</a></p>
  </blockquote>
  <p><strong>I also tried these as an error said to do and they did not work</strong></p>
  <p>(node:14348) UnhandledPromiseRejectionWarning: Error: Could not find browser revision latest. Run &quot;PUPPETEER_PRODUCT=firefox npm install&quot; or &quot;PUPPETEER_PRODUCT=firefox yarn install&quot; to download a supported Firefox browser binary.</p>
  <p>PUPPETEER_PRODUCT=firefox npm install</p>
  <p>PUPPETEER_PRODUCT=firefox yarn install</p>