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.

Failed to build a path to Chromium executable on Windows 10

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 7.1.0
  • Platform / OS version: Windows 10 Pro version 2004 build 19041.789
  • URLs (if applicable): any url
  • Node.js version: 14.15.1

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. npm i puppeteer
  2. run await puppeteer.launch();

What is the expected result? Puppeteer to be launched without errors and local Chromium is used (the one installed to node_modules)

What happens instead? Chromium r848005 was succesfully installed to node_modules/puppeteer/.local-chromium, and I can validate it physically on FS. However, launching a program throws next error:

Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (848005).
    at ChromeLauncher.launch (%%absolute path to project%%\dist\server.js:233643:27)

I tried to debug a little and found that next function seems to be the source of the problem: https://github.com/puppeteer/puppeteer/blob/main/src/node/BrowserFetcher.ts#L417 It returns '%%absolute path to project%%\\.local-chromium\\win64-848005' but should return '%%absolute path to project%%\\node_modules\\puppeteer\\.local-chromium\\win64-848005' instead

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Schahencommented, May 7, 2021

For me it haven’t with puppeeteer-core@9.1.1 I can still see this exactly problem.

1reaction
sr258commented, May 6, 2021

The problem seems to have disappeared with Puppeteer 9.1.0 - for me at least.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chromium Build Failing on Windows
I made some changes and executed my first build and ran into some errors. ninja: build stopped: subcommand failed.
Read more >
Chromium Windows build fails with 10.0.19041.0 SDK
Issue 1089996: Chromium Windows build fails with 10.0.19041.0 SDK · 1) Use the standard headers · 2) Add this function to their alternate...
Read more >
Checking out and Building Chromium for Windows
After running gclient open a command prompt and type where python and confirm that the depot_tools python. bat comes ahead of any copies...
Read more >
Error message: "'chromedriver' executable needs to be ...
In my case, this error disappears when I have copied chromedriver file to c:\Windows folder. Its because windows ...
Read more >
Fix Chrome update problems & failed updates
Make sure your computer meets the system requirements. Download Chrome again and try reinstalling. If you keep seeing an error: On Windows, try...
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