Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppeteer Error: Could not find Chrome #149

Open
rnnnnh opened this issue Feb 19, 2025 · 7 comments
Open

Puppeteer Error: Could not find Chrome #149

rnnnnh opened this issue Feb 19, 2025 · 7 comments
Labels
bug Something isn't working macos Platform: macOS

Comments

@rnnnnh
Copy link

rnnnnh commented Feb 19, 2025

hello! thank you for creating this tool.
this is my first time using anything with puppeteer and I'm getting an error after running the following:
bun run start --baseUrl "https://www.amazon.com" --totalDownloads 1 --manualAuth true

I get this:

257 |             if (configVersion) {
258 |                 throw new Error(`Tried to find the browser at the configured path (${executablePath}) for version ${configVersion}, but no executable was found.`);
259 |             }
260 |             switch (this.browser) {
261 |                 case 'chrome':
262 |                     throw new Error(`Could not find Chrome (ver. ${this.puppeteer.browserVersion}). This can occur if either\n` +
                                ^
error: Could not find Chrome (ver. 133.0.6943.98). This can occur if either
 1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
 2. your cache path is incorrectly configured (which is: /Users/****/.cache/puppeteer).

this is after successfully running the browsers installation script recommended in the error message. appreciate any insight!

@j0rdan
Copy link

j0rdan commented Feb 19, 2025

same error here, no idea how to setup chrome for use with bun in either ubuntu or Windows

@inlikealion
Copy link
Collaborator

@rnnnnh what platform are you on? And you successfully ran npx puppeteer browsers install chrome?

@j0rdan did you run npx puppeteer browsers install chrome? I had the above error but fixed it with the separate puppeteer install. Your system Chrome is not what puppeteer is using, AFAIK.

@rnnnnh
Copy link
Author

rnnnnh commented Feb 19, 2025

@treetrum whoops forgot to include that. I'm on macOS Sequoia and yes the installation was successful

@inlikealion
Copy link
Collaborator

@rnnnnh @j0rdan Looks like @treetrum has indicated the more bun-friendly command, bunx @puppeteer/browsers install chrome.

@rnnnnh
Copy link
Author

rnnnnh commented Feb 19, 2025

@inlikealion unfortunately that didn't work for me. it also looks like bunx @puppeteer/browsers install installed a newer version of chrome (ver. 135.0.7024.0) instead of ver. 133.0.6943.98 which is what error calls out. npx puppeteer browsers install chrome successfully installed the older version but I'm still getting the error. not sure if that really makes a difference but just thought I'd point it out.

@edlaver
Copy link

edlaver commented Feb 20, 2025

@rnnnnh Could you try setting the executablePath setting to point to a different instance of Chrome? See: #175

@inlikealion inlikealion added the macos Platform: macOS label Feb 20, 2025
@treetrum treetrum added the bug Something isn't working label Feb 21, 2025
@treetrum treetrum changed the title Error using manualAuth Puppeteer Error: Could not find Chrome Feb 21, 2025
@rnnnnh
Copy link
Author

rnnnnh commented Feb 22, 2025

@edlaver that did it! I'm able to download now, thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Platform: macOS
Projects
None yet
Development

No branches or pull requests

5 participants