Skip to main content
当你使用 Bun.spawn() 衍生子进程时,它会继承衍生进程的 stderr。若想读取并处理 stderr,请将 stderr 选项设置为 "pipe"

要读取 stderr 直到子进程退出,请使用 .text()

参见 子进程