Skip to content

child_process.spawnSync() not return anything. #728

@netcore-jroger

Description

@netcore-jroger
  • Version: 6.11.0 or 6.11.1
  • Platform: Win10 Pro latest stable
  • Subsystem:

In my company's computer:

let result = childProcess.spawnSync('D:/Program Files/nodejs/node.exe', ['--version']);

work very well, can get return value.
but

let result = childProcess.spawnSync('node', ['--version']);

not work and the code behind it will not execute.

I use myself computer:

let result = childProcess.spawnSync('node', ['--version']);

was work very well.

I have added D:\Program Files\nodejs\ to the environment variable.

This problem caused my vscode editor to not work properly. see#45048199

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions