术语 'deno' 未被识别为 cmdlet、函数、脚本文件或可运行程序的名称

The term 'deno' is not recognized as the name of a cmdlet, function, script file, or operable program

我使用 Powershell 安装了 Deno,尽管如此,我在我的 Visual Studio Code 中遇到了这个错误,我如何验证?

The term 'deno' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.

Deno 没有正确安装。

  1. Open Powershell and Run as Administrator

  2. After that, if you are using windows type this command to install properly

3 . iwr https://deno.land/x/install/install.ps1 -useb | iex

我遇到了同样的问题。 deno 运行 index.js 在 VSCode 终端中没有工作,但 deno 在 powershell 中工作。 我做了什么?我只是关闭 VSCode 并再次打开它。 “哇!”成功了!