From 9d0ad79b478a3e21b73f9efc923c487d51133c72 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 1 Sep 2017 20:59:28 -0700 Subject: [PATCH] fail installation when puppeteer errors downloading chromium (#654) This patch starts failing npm installation when puppeteer errors downloading chromium. --- install.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/install.js b/install.js index 6a5a92ff996..8034e486852 100644 --- a/install.js +++ b/install.js @@ -36,11 +36,8 @@ Downloader.downloadRevision(platform, revision, onProgress) .catch(onError); function onError(error) { - console.error(`ERROR: Failed to download chromium r${revision}! -- Download chromium manually: - ${revisionInfo.url} -- Extract chromium into ${revisionInfo.folderPath} - * Chromium executable should be at ${revisionInfo.executablePath}`); + console.error(`ERROR: Failed to download Chromium r${revision}! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.`); + process.exit(1); } let progressBar = null;