From e4a8d8623782005f89af7fb3b9ebc0decfb0eab2 Mon Sep 17 00:00:00 2001 From: RainbowDashDC Date: Sun, 15 Feb 2015 19:38:35 -0800 Subject: [PATCH] Fixes #98 by giving win32 a 100 length progress bar. --- lib/exe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exe.js b/lib/exe.js index 7a14478..82bba92 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -194,7 +194,7 @@ function _downloadNode (version, directory, complete) { function downloadNode (next) { if (fs.existsSync(nodeFilePath)) return next(); - var url, prefix = "http://nodejs.org/dist"; + var url, prefix = "https://nodejs.org/dist"; // pick which url depending on the version if (version === "latest") { @@ -453,7 +453,7 @@ function _logProgress (req) { complete: "=", incomplete: " ", total: len, - width: process.stdout.columns - 2 + width: ((isWin) ? 100 : process.stdout.columns - 2) }); req.on("data", function (chunk) {