From c1923868057b42a59a5902f66d32d87849d9d032 Mon Sep 17 00:00:00 2001 From: Sam Denty Date: Mon, 7 Oct 2024 15:00:18 +0100 Subject: [PATCH] fix(npm): fix hanging shells (#153) --- app/lib/runtime/action-runner.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();