question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chromium revision is not downloaded

See original GitHub issue

Chromium revision is not downloaded how should i do i use yarn add pupperteer

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
chuiliucommented, Jan 23, 2018

you can download it from chromium and extract to your project. and then use this config.

const browser = await puppeteer.launch({
    executablePath: './chrome-win32/chrome.exe'
});
8reactions
Jiangmxcommented, Feb 24, 2018

After downgrade and upgrade puppeteer a few times,I got an error of Chromium revision is not downloaded.

My solution is

  1. download app from https://storage.googleapis.com/chromium-browser-snapshots/Mac/526987/chrome-mac.zip 526987 is the chrome version your puppeteer need .Other OS https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
  2. move the app file into {home}/node_modules/puppeteer/.local-chromium/mac-526987/chrome-mac

rules:

const downloadURLs = {
  linux: '%s/chromium-browser-snapshots/Linux_x64/%d/chrome-linux.zip',
  mac: '%s/chromium-browser-snapshots/Mac/%d/chrome-mac.zip',
  win32: '%s/chromium-browser-snapshots/Win/%d/chrome-win32.zip',
  win64: '%s/chromium-browser-snapshots/Win_x64/%d/chrome-win32.zip',
};
revisionInfo(revision) {
    const folderPath = this._getFolderPath(revision);
    let executablePath = '';
    if (this._platform === 'mac')
      executablePath = path.join(folderPath, 'chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium');
    else if (this._platform === 'linux')
      executablePath = path.join(folderPath, 'chrome-linux', 'chrome');
    else if (this._platform === 'win32' || this._platform === 'win64')
      executablePath = path.join(folderPath, 'chrome-win32', 'chrome.exe');
    else
      throw 'Unsupported platform: ' + this._platform;
    let url = downloadURLs[this._platform];
    url = util.format(url, this._downloadHost, revision);
    const local = fs.existsSync(folderPath);
    return {revision, executablePath, folderPath, local, url};
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Puppeteer Error: Chromium revision is not downloaded
I only managed to fix the issue by manually installing Chromium after much searching and trying most of the suggestions:
Read more >
Error: Chromium revision is not downloaded. Run ... - GitHub
Chromium is installed (version 79.0.3945.130) and I see the version number (though it's a different number with no decimal points) in the Node ......
Read more >
A critical error: Chromium revision is not downloaded.
Normally when installing critical and html-critical-webpack-plugin , Chromium would be installed using Docker. You can read the Docker ...
Read more >
puppeteer-chromium-resolver - npm package - Snyk
Tool to resolve puppeteer and chromium faster, detect local installed chromium, download chromium with custom mirror host, cache chromium revision out of ...
Read more >
How to find the right CHROMIUM_REVISION value for a given ...
$ export NODE_CHROMIUM_REVISION=729994 · Step 1. Retrieving Chromium revision number Step 2. Downloading Chromium revision 72999 Downloading ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found