download latest version
This commit is contained in:
+2
-2
@@ -95,7 +95,7 @@ exports.compile = function(args, next) {
|
||||
|
||||
function downloadNode(version, temp, next) {
|
||||
|
||||
var tmpPath = path.join(temp, "node-v" + version + ".tar.gz"),
|
||||
var tmpPath = path.join(temp, "node-" + version + ".tar.gz"),
|
||||
srcDr = tmpPath.replace(/\.tar.gz$/, "");
|
||||
|
||||
try {
|
||||
@@ -119,7 +119,7 @@ function downloadNode(version, temp, next) {
|
||||
console.log("downloading node %s", version);
|
||||
|
||||
var output = fs.createWriteStream(tmpPath, { "flags": "w+" }),
|
||||
req = request("http://nodejs.org/dist/v" + version + "/node-v" + version + ".tar.gz").pipe(output);
|
||||
req = request("http://nodejs.org/dist/node-" + version + ".tar.gz").pipe(output);
|
||||
|
||||
output.on("close", this);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user