'deno-init' 不是内部或外部命令,也不是可运行的程序或批处理文件

'deno-init' is not recognized as an internal or external command, operable program or batch file

我已经在 Windows10 上安装了 Deno。这是我在 CMD 中看到的 Deno 版本:

deno --version
deno 1.16.3 (release, x86_64-pc-windows-msvc)
v8 9.7.106.5
typescript 4.4.2

当我尝试 deno-init -y --name backend 时,它给我这个错误信息:

'deno-init' is not recognized as an internal or external command, operable program or batch file.

根据documentation,首先运行 deno install 来安装deno-init:

deno install --allow-read --allow-run=git --allow-write -n deno-init https://deno.land/x/init@v1.5.2/mod.ts

You can install deno-init from a GitHub raw URL with a tag as well, or without one to get the latest and greatest (though also unreleased) version:

deno install --allow-read --allow-run=git --allow-write -n deno-init https://raw.githubusercontent.com/GJZwiers/deno-init/main/mod.ts
To