From c44564aa9409df0e5d7ebf5f8bda70468b6b597b Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 10 Jan 2019 21:42:24 -0800 Subject: [PATCH] feat(docs): mention puppeteer@chrome tagged releases (#3528) --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b09483d..e518597c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ npm i puppeteer-core # or "yarn add puppeteer-core" ``` -`puppeteer-core` is intended to be a lightweight version of Puppeteer for launching an existing browser installation or for connecting to a remote one. +`puppeteer-core` is intended to be a lightweight version of Puppeteer for launching an existing browser installation or for connecting to a remote one. Be sure that the version of puppeteer-core you install is compatible with the +browser you intend to connect to. See [puppeteer vs puppeteer-core](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteer-vs-puppeteer-core). @@ -310,7 +311,12 @@ This is not an artificial constraint: A lot of work on Puppeteer is actually tak - It turned out this is an issue with the DevTools protocol, so we’re fixing it in Chromium: https://chromium-review.googlesource.com/c/chromium/src/+/1102154 - Once the upstream fix is landed, we roll updated Chromium into Puppeteer: https://github.com/GoogleChrome/puppeteer/pull/2769 -However, oftentimes it is desirable to use Puppeteer with the official Google Chrome rather than Chromium. For this to work, you should pick the version of Puppeteer that uses the Chromium version close enough to Chrome. +However, oftentimes it is desirable to use Puppeteer with the official Google Chrome rather than Chromium. For this to work, you should install a `puppeteer-core` version that corresponds to the Chrome version. + +For example, in order to drive Chrome 71 with puppeteer-core, use `chrome-71` npm tag: +```bash +npm install puppeteer-core@chrome-71 +``` #### Q: Which Chromium version does Puppeteer use?