【发布时间】:2021-09-07 06:13:26
【问题描述】:
在窗口中
以下代码在终端中有输出消息
const p = Deno.run({
cmd: ['git', 'config', '-l'],
stdout: 'piped'
})
console.log(new TextDecoder('utf-8').decode(await p.output()))
但以下代码在终端中没有输出消息
const p = Deno.run({
cmd: ['git', 'config', '-l'],
stdout: 'inherit',
stderr: 'inherit
})
【问题讨论】:
-
你有什么问题?
标签: deno