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

Location of downloaded chromium #679

Closed
sjfricke opened this issue Sep 4, 2017 · 6 comments
Closed

Location of downloaded chromium #679

sjfricke opened this issue Sep 4, 2017 · 6 comments

Comments

@sjfricke
Copy link

sjfricke commented Sep 4, 2017

Is there a way to show the file path of where it is downloading Chromium when running npm i puppeteer as I can't seem to ever find where it actually is downloading it

@ebidel
Copy link
Contributor

ebidel commented Sep 4, 2017

The path will change based on the platform that you install puppeteer on. install.js has methods for finding that path. Something like this should work:

const Downloader = require('puppeteer/utils/ChromiumDownloader');
const {chromium_revision} = require('puppeteer/package.json').puppeteer;
const info = Downloader.revisionInfo(Downloader.currentPlatform(), chromium_revision);
console.log(info);

info.executablePath will give you the binary's path. Useful when launching chrome: puppeter.launch({executablePath: info.executablePath}).

@KaKi87
Copy link

KaKi87 commented May 1, 2020

Hello, how can I do the same thing today ? The utils directory no longer exists. Thanks

@mathiasbynens
Copy link
Member

@prvnsmpth
Copy link

@KaKi87 Puppeteer has an API for getting the path to the executable: https://github.com/GoogleChrome/puppeteer/blob/v1.1.1/docs/api.md#puppeteerexecutablepath

@humkins
Copy link

humkins commented Oct 11, 2022

run in the directory where node_modules is located

node -e "console.log(require('puppeteer').executablePath())"

Example output on Linux:

/app/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome

vtamara pushed a commit to pasosdeJesus/msip that referenced this issue Sep 5, 2023
@estatistics
Copy link

downloaded location in debian linux for chrome is /home/user/.cache/puppeteer/chrome/linux-117.0.5938.92/chrome-linux64/ and it is not detected at all. I will recommend puppeeteer to tell the EXPECTED full dir in order to be able to rename it for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants