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.

is:issue is:open When you install Puppeteer, it does not download a recent version of Chromium

See original GitHub issue

when installing Puppeteer using npm install puppeteer, it does not download a recent version of Chromium as it is mentioned in the documentation.

When using puppeteer.launch({product: 'chrome'}), I found out it is looking for this folder: node_modules/puppeteer/.local-chromium/mac-756035 which does not exist. And it does not attempt to download.

Notes:

  • I have not set the environment variable to skip the download. (also tried to setting it to false)
  • Tried puppeteer versions 5.0.0 and 5.4.1
  • I’m using a mac

In version 5.0.0 I get the following error:

Could not find browser revision 756035. Run “npm install” or “yarn install” to download a browser binary.

Where as in version 5.4.1 I get a different error:

Could not find browser revision 809590. Run “PUPPETEER_PRODUCT=firefox npm install” or “PUPPETEER_PRODUCT=firefox yarn install” to download a supported Firefox browser binary.’

Which is even stranger cause I explicitly used product: 'chrome' in the launch options.

Error is at https://github.com/puppeteer/puppeteer/blob/6d06adea10572d2667a9d1c5a48193903860341b/src/node/Launcher.ts#L751

cause the executablePath is something like: node_modules/puppeteer/.local-chromium/mac-756035 which does not exist.

https://github.com/puppeteer/puppeteer/blob/6d06adea10572d2667a9d1c5a48193903860341b/src/node/Launcher.ts#L773

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:13

github_iconTop GitHub Comments

7reactions
sgalindo2388commented, Mar 30, 2021

Was anyone able to figure how to solve this issue? I started getting this error today and I’m not sure what else I can do.

I’ve tried removing puppeteer and re-installing (7.1.0 & 8.0.0), using different versions of node (8.15.1, 10.16.3 & 14.16.0) and npm(6.9.0 & 7.7.6) and keep getting the error:

"Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (848005).
                    at ChromeLauncher.launch (/usr/local/lib/node_modules/backstopjs/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:80:27)
                    at async processScenarioView (/usr/local/lib/node_modules/backstopjs/core/util/runPuppet.js:63:19)"

I’m trying to run a Backstopjs(https://github.com/garris/BackstopJS - v5.3.0) test but it seems like puppeteer still can’t find chrome.

Any help would really be appreaciated.

2reactions
markcelluscommented, Jul 21, 2022

Confirmed this is also happening for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Puppeteer Error: Chromium revision is not downloaded
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work ......
Read more >
Troubleshooting - Puppeteer
The bundled Chromium that Puppeteer installs is missing the necessary shared library dependencies. To fix, you'll need to install the missing dependencies and ......
Read more >
How to Run Puppeteer with Firefox Instead of Chrome
Installing Puppeteer. By default, the command for installing Puppeteer, npm i puppeteer will download the latest version of Chromium which is guaranteed to...
Read more >
Connecting Puppeteer to Existing Chrome Window w - Medium
How To: Connect Puppeteer to existing Chrome Window in order to build scripts to work around reCAPTCHA.
Read more >
Browser automation revisited - meet Puppeteer
Once you add Puppeteer to your project using. npm install puppeteer. , it also downloads a recent version of Chromium that is guaranteed...
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