fix(npm): fix hanging shells (#153)

This commit is contained in:
Sam Denty 2024-10-07 15:51:16 +02:00 committed by GitHub
parent 0934c932d7
commit efcb93d6d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ export async function newShellProcess(webcontainer: WebContainer, terminal: ITer
cols: terminal.cols ?? 80, cols: terminal.cols ?? 80,
rows: terminal.rows ?? 15, rows: terminal.rows ?? 15,
}, },
env: { npm_config_yes: true },
}); });
const input = process.input.getWriter(); const input = process.input.getWriter();