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

How to use with puppeteer-core? #27

Closed
mrgodhani opened this issue Mar 14, 2019 · 3 comments
Closed

How to use with puppeteer-core? #27

mrgodhani opened this issue Mar 14, 2019 · 3 comments
Assignees

Comments

@mrgodhani
Copy link

mrgodhani commented Mar 14, 2019

HI,

I don't want to install full puppeteer package as it also installs a browser with it. If I want to use puppeteer-core and use installed browser to connect using chrome-launcher how would I use it with puppeteer-extra?

@garrett-hopper
Copy link

This would be great; at the moment I have to manually symlink my chromium installation into my node_modules in order to use it, because I can't use puppeteer-core along with puppeteer-extra.

@haggholm
Copy link

haggholm commented Jun 5, 2019

I’ve opened #43, so we’ll see what happens; in a lot of solutions, you can probably use the new npm alias functionality (npm install puppeteer@npm:puppeteer-core) (https://github.com/npm/rfcs/blob/latest/implemented/0001-package-aliases.md)

@berstend berstend self-assigned this Nov 24, 2019
@berstend
Copy link
Owner

according to "puppeteer vs puppeteer-core" they have two main differences...

To sum up, the only differences between puppeteer-core and puppeteer are:

  • puppeteer-core doesn't automatically download Chromium when installed.
  • puppeteer-core ignores all PUPPETEER_* env variables.

You can avoid downloading chrome using the PUPPETEER_SKIP_CHROMIUM_DOWNLOAD environment variable during installation. This makes puppeteer almost identical to puppeteer-core with the added benefit of convenient env vars.

e.g. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install puppeteer

Closing this for now, please re-open if the above solution doesn't work in all scenarios. :)

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

4 participants