You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the spawnWithShell function expecting the environment variable ComSpec to be defined (usually cmd.exe on Windows). However, in some Windows environments, ComSpec might be undefined.
In addition to the approach I suggested, it might also be helpful to display a clear error message to the user when the required environment variable is not set.
Is there an existing issue for this?
Current Behavior
2025-04-03T00_27_13_487Z-debug-0.log
This is caused by the
spawnWithShell
function expecting the environment variableComSpec
to be defined (usuallycmd.exe
on Windows). However, in some Windows environments,ComSpec
might be undefined.Actual behavior:
Fails with
ERR_INVALID_ARG_TYPE
.Proposed solution:
Modify the
spawnWithShell
function as follows:Expected Behavior
It should default to
C:\Windows\System32\cmd.exe
ifComSpec
is undefined, allowing the command to succeed.Steps To Reproduce
ComSpec
is unset or missing.npm start
that usesopts.shell = true
internally.Environment
The text was updated successfully, but these errors were encountered: