diff --git a/app/lib/runtime/action-runner.ts b/app/lib/runtime/action-runner.ts index cb65f87f..e2ea6a22 100644 --- a/app/lib/runtime/action-runner.ts +++ b/app/lib/runtime/action-runner.ts @@ -128,7 +128,9 @@ export class ActionRunner { const webcontainer = await this.#webcontainer; - const process = await webcontainer.spawn('jsh', ['-c', action.content]); + const process = await webcontainer.spawn('jsh', ['-c', action.content], { + env: { npm_config_yes: true }, + }); action.abortSignal.addEventListener('abort', () => { process.kill(); diff --git a/app/utils/shell.ts b/app/utils/shell.ts index c5ad7798..1c5c834d 100644 --- a/app/utils/shell.ts +++ b/app/utils/shell.ts @@ -11,7 +11,6 @@ export async function newShellProcess(webcontainer: WebContainer, terminal: ITer cols: terminal.cols ?? 80, rows: terminal.rows ?? 15, }, - env: { npm_config_yes: true }, }); const input = process.input.getWriter();