Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realamirhe/b7e9e9784545734f640259937ba54fa6 to your computer and use it in GitHub Desktop.
Save realamirhe/b7e9e9784545734f640259937ba54fa6 to your computer and use it in GitHub Desktop.
install puppteer with local chrome-linux installation file. (offline/without extra download)

When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API.

If you have chrome-linux.zip by chance here is instruction to get it into work

  1. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 yarn add puppeteer
  2. make a folder named .local-chromium in node_modules/puppeteer
  3. if you are in linux make another folder named linux-901912 in .local-chromium

version is the same as the version which you've downloaded chromimum e.g. in https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/901912/chrome-linux.zip it is 901912

  1. extract the downloaded chrome-linux.zip in the linux-901912 directory.

/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment