question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install Firefox Puppeteer on Windows 10

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 8.0.0
  • Platform / OS version: Windows 10
  • URLs (if applicable):
  • Node.js version: v12.16.2

What steps will reproduce the problem?

Please include code that reproduces the issue.

I was trying to install Firefox By the command: PUPPETEER_PRODUCT=firefox npm install puppeteer

What is the expected result?

got the next error: PUPPETEER_PRODUCT=firefox : The term 'PUPPETEER_PRODUCT=firefox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

What happens instead?

It didn’t work

What am I doing wrong? (I tried on linux and it worked fine , but I need it to work on Windows 10)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
EAIS-PYcommented, May 20, 2021

This helped me:

npm config set puppeteer_product=firefox

npm install puppeteer

1reaction
mbehzadcommented, Jun 16, 2021

it think on windows you have to set env var in cmd like: set PUPPETEER_PRODUCT=firefox&& npm install puppeteer

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Firefox for Puppeteer?
Delete the puppeteer folder from node_modules. This is to force puppeteer to be reinstalled with the firefox binary in step 2.
Read more >
How to Run Puppeteer with Firefox Instead of Chrome
First, you need to delete the /puppeteer folder from your /node_modules folder. The Chromium browser is downloaded in the /node_modules/puppeteer folder when ...
Read more >
How to run Tests in Puppeteer with Firefox
Set up basic Puppeteer Framework. Step 1: To run Puppeteer tests with Firefox, set the environment variable for Puppeteer firefox using: Windows ......
Read more >
Puppeteer install and run firefox browser programmatically
... programmatically download and run the firefox binary using Puppeteer.We will be using puppeteer. ... Your browser can't play this video.
Read more >
Use Playwright to automate and test in Microsoft Edge
Install Playwright and browsers; Run a basic test ... Playwright is a Node.js library to automate Chromium, Firefox, and WebKit with a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found