fail installation when puppeteer errors downloading chromium (#654)
This patch starts failing npm installation when puppeteer errors downloading chromium.
This commit is contained in:
parent
64124df62f
commit
9d0ad79b47
@ -36,11 +36,8 @@ Downloader.downloadRevision(platform, revision, onProgress)
|
|||||||
.catch(onError);
|
.catch(onError);
|
||||||
|
|
||||||
function onError(error) {
|
function onError(error) {
|
||||||
console.error(`ERROR: Failed to download chromium r${revision}!
|
console.error(`ERROR: Failed to download Chromium r${revision}! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.`);
|
||||||
- Download chromium manually:
|
process.exit(1);
|
||||||
${revisionInfo.url}
|
|
||||||
- Extract chromium into ${revisionInfo.folderPath}
|
|
||||||
* Chromium executable should be at ${revisionInfo.executablePath}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let progressBar = null;
|
let progressBar = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user