windows nodejs child_process exec echo总是打印childProcess实例

问题描述 投票:0回答:1

像这样:

Screenshot

我已尝试使用cmd.exe,powershell.exe,git-bash.exe,它们都有此行为。为什么?

node.js windows echo child-process
1个回答
0
投票

如果评估的REPL输入是表达式,则在控制台中打印评估结果,否则打印undefined

正如the reference所述,childprocess_exec()返回child process对象:

返回:<ChildProcess>

© www.soinside.com 2019 - 2024. All rights reserved.