Fixes #98 by giving win32 a 100 length progress bar.
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user