From 41272d1eeb2f6a02d23eff4cf00515d4a77a878c Mon Sep 17 00:00:00 2001 From: Donatas Bacius Date: Wed, 18 Feb 2015 18:14:25 +0000 Subject: [PATCH] Can properly execute node on windows --- lib/isIojs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isIojs.js b/lib/isIojs.js index 41c4788..e7db58e 100644 --- a/lib/isIojs.js +++ b/lib/isIojs.js @@ -12,5 +12,5 @@ module.exports = (function () { if (~[ 'v1.0.0', 'v1.0.1' ].indexOf(process.version)) { return true; } - return /iojs\.org/.test(cp.execSync(process.execPath + ' -h', { encoding: 'ascii' })); + return /iojs\.org/.test(cp.execSync('"' + process.execPath + '" -h', { encoding: 'ascii' })); })();