mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-20 17:15:39 -05:00
fixed node program not found for C:\Users\sai\AppData\Local\Vyla Home\_up_\main.js
This commit is contained in:
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user