codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.04k stars 2.27k forks source link

running chlid process within node sandbox #1848

Closed akhiljay closed 5 years ago

akhiljay commented 5 years ago

❔ Question

Trying to run a child process within code sandbox using the code below

const spawn = require("child_process").spawn;

but keep getting the error events.js:174 throw er; // Unhandled 'error' event ^

Error: spawn akamai ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19)

are child process allowed within the sandbox?

lbogdan commented 5 years ago

Hey @akhiljay , I'm guessing you already solved this, considering you opened #1852 , so I'm just gonna close it.