diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index a3ca61472..a09c0294f 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -922,18 +922,17 @@ exports.newHttpInterface = function newHttpInterface() { async function runNodeSetup () { console.log( "Running Node setup to adjust for new Branch" ) - const process = require("process"); - const { execSync } = require("child_process"); + const process = SA.nodeModules.process + const childProcess = SA.nodeModules.childProcess let dir = process.cwd() - let command = "node setup"; - let stdout = execSync( command, + let command = "node setup noShortcuts"; + let stdout = childProcess.execSync( command, { cwd: dir }).toString(); - console.log("Node Setup has completed with the following result:", stdout) - + console.log("Node Setup has completed with the following result:", stdout) } } catch (err) { diff --git a/PlatformRoot.js b/PlatformRoot.js index 396a1c727..924c9e1e5 100644 --- a/PlatformRoot.js +++ b/PlatformRoot.js @@ -48,7 +48,9 @@ SA.nodeModules = { ccxt: require('ccxt'), octokit: require("@octokit/rest"), simpleGit: require('simple-git'), - lookpath: require('lookpath') + lookpath: require('lookpath'), + process: require('process'), + childProcess: require('child_process') } run()