【发布时间】:2021-09-06 20:17:41
【问题描述】:
import { exec } from "https://deno.land/x/exec/mod.ts";
await exec(`git clone https://github.com/vuejs/vue.git`)
当我在 .sh 文件中使用 git clone https://github.com/vuejs/vue.git 时,终端中有消息,
但在 deno 中没有
【问题讨论】:
-
exec模块与 Deno 无关。https://deno.land/x/...的所有模块都是第三方代码。要使用您的 shell,请参阅手册中的 Creating a subprocess。
标签: deno