fix: fix spawn EINVAL error in node 20 (#226)

This commit is contained in:
silon-j authored and GitHub committed 2026-05-17 14:35:31 +08:00
1 parent 2907f09e58
commit 86250a53d6
1 file changed
+1
+1
View File
@@ -17,6 +17,7 @@ spawn(
process.platform === 'win32' ? 'npm.cmd' : 'npm', process.platform === 'win32' ? 'npm.cmd' : 'npm',
['run', 'dev'], ['run', 'dev'],
{ {
shell: true,
stdio: 'inherit', stdio: 'inherit',
env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }), env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }),
}, },