diff --git a/bin/nexe b/bin/nexe index 7547f3f..4af18e6 100755 --- a/bin/nexe +++ b/bin/nexe @@ -18,7 +18,7 @@ options('o', { }). options('r', { alias: 'runtime', - default: '0.10.20', + default: 'latest', description: 'The node.js runtime to use' }). options('t', { diff --git a/lib/index.js b/lib/index.js index fbfbc9e..51232a5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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); },