From 45d0d2908bb0518bc3fb288626fd2efcb90ea0a1 Mon Sep 17 00:00:00 2001 From: silon-j <45513229+silon-j@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:53:48 +0800 Subject: [PATCH] fix: fix spawn EINVAL error in latest node --- .vscode/.debug.script.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/.debug.script.mjs b/.vscode/.debug.script.mjs index 9ca93363..d42a9e1b 100644 --- a/.vscode/.debug.script.mjs +++ b/.vscode/.debug.script.mjs @@ -17,7 +17,8 @@ spawn( process.platform === 'win32' ? 'npm.cmd' : 'npm', ['run', 'dev'], { + shell: true, stdio: 'inherit', env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }), }, -) \ No newline at end of file +)