diff --git a/demo/web/scripts/run_demo.js b/demo/web/scripts/run_demo.js index fae9151..43f0937 100644 --- a/demo/web/scripts/run_demo.js +++ b/demo/web/scripts/run_demo.js @@ -35,6 +35,7 @@ fs.writeFileSync( const command = (process.platform === "win32") ? "npx.cmd" : "npx"; -child_process.fork("http-server", ["-a", "localhost", "-p", "5000"], { - execPath: command, +child_process.execSync(`${command} http-server -a localhost -p 5000`, { + shell: true, + stdio: 'inherit' });