Commit c365f8c3 by xzyfer

Normalize runtime name for binary installation

parent d7c189be
...@@ -8,9 +8,11 @@ var semver = require('semver'), ...@@ -8,9 +8,11 @@ var semver = require('semver'),
*/ */
function getRuntimeName() { function getRuntimeName() {
return process.execPath var runtime = process.execPath
.split(/[\\/]+/).pop() .split(/[\\/]+/).pop()
.split('.').shift(); .split('.').shift();
return runtime === 'node' || runtime === 'nodejs' ? 'node' : runtime;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment