diff --git a/shell.js b/shell.js index 700ee43..f0cd236 100644 --- a/shell.js +++ b/shell.js @@ -1770,7 +1770,7 @@ function execSync(cmd, opts) { if (fs.existsSync(codeFile)) _unlinkSync(codeFile); fs.writeFileSync(scriptFile, script); - child.exec('node '+scriptFile, { + child.exec('"'+process.execPath+'" '+scriptFile, { env: process.env, cwd: exports.pwd() });