-1
我在执行打字稿文件时遇到了一些麻烦。我正在使用visual studio代码来执行打字稿文件。我已经安装并设置了visual studio代码和打字稿。但是当我尝试执行打字稿文件(tsc filename.ts)时,它显示一个错误。请帮忙!使用Visual Studio代码执行Typescript文件
错误:
PS D:\01_Hello> tsc app.ts
tsc : The term 'tsc' 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.
At line:1 char:1
+ tsc app.ts
+ ~~~
+ CategoryInfo : ObjectNotFound: (tsc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
可能重复[tsc不被识别为内部或外部命令](https://stackoverflow.com/questions/35369501/tsc-is-not-recognized-as-internal-or-external-command) –