diff --git a/lib/extensions.js b/lib/extensions.js index 7bca70d58..d040069df 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -8,9 +8,11 @@ var semver = require('semver'), */ function getRuntimeName() { - return process.execPath + var runtime = process.execPath .split(/[\\/]+/).pop() .split('.').shift(); + + return runtime === 'node' || runtime === 'nodejs' ? 'node' : runtime; } /**