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) {
|
function downloadNode (next) {
|
||||||
if (fs.existsSync(nodeFilePath)) return 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
|
// pick which url depending on the version
|
||||||
if (version === "latest") {
|
if (version === "latest") {
|
||||||
@@ -453,7 +453,7 @@ function _logProgress (req) {
|
|||||||
complete: "=",
|
complete: "=",
|
||||||
incomplete: " ",
|
incomplete: " ",
|
||||||
total: len,
|
total: len,
|
||||||
width: process.stdout.columns - 2
|
width: ((isWin) ? 100 : process.stdout.columns - 2)
|
||||||
});
|
});
|
||||||
|
|
||||||
req.on("data", function (chunk) {
|
req.on("data", function (chunk) {
|
||||||
|
|||||||
Reference in New Issue
Block a user