【发布时间】:2018-03-18 08:35:12
【问题描述】:
我在执行打字稿文件时遇到了一些问题。我正在使用 Visual Studio 代码来执行打字稿文件。我已经安装并设置了 Visual Studio 代码和打字稿。但是当我尝试执行打字稿文件(tsc filename.ts)时,它会显示错误。请帮忙!
错误:
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
【问题讨论】:
标签: typescript visual-studio-code