fixed node program not found for C:\Users\sai\AppData\Local\Vyla Home\_up_\main.js

This commit is contained in:
2026-08-22 14:04:52 -07:00
parent d262cd7094
commit 66004a79e4
6 changed files with 96 additions and 8 deletions

View File

@@ -59,11 +59,13 @@ class ServiceManager {
this.logToFile(name, `--- Starting ${name} in ${serviceDir} ---`);
const child = spawn('node', [scriptPath], {
const nodeExecutable = process.env.NODE_EXE || 'node';
const child = spawn(nodeExecutable, [scriptPath], {
cwd: serviceDir,
env,
stdio: ['ignore', 'pipe', 'pipe'],
shell: process.platform === 'win32'
shell: false
});
this.processes[name] = {