Typescript -w(watch)在我的安装中不起作用 [英] Typescript -w(watch) is not working in my installation
本文介绍了Typescript -w(watch)在我的安装中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了Typescript 2.0.6,我也在安装节点。如果我尝试使用-w在监视模式下编译文件,则它无效。它抛出以下错误。
I have installed the Typescript 2.0.6, i am also having the node installation. If i try to compile a file in watch mode with "-w" it is not working. It throws the below error.
ts5001: the current host does not support the '--watch' option
使用以下命令编译我的打字稿文件index.ts
Used the below command to compile my typescript file "index.ts"
tsc -w index.ts
如果知道的话请帮我看看如何在监视模式下编译代码。
If any know please help me how to compile the code in watch mode.
推荐答案
你无法获得观看
通过使用 tsc运行打字稿代码的功能
像
一样运行 node tsc.js -w index.ts
来源: https://github.com/Microsoft/TypeScript/issues/2375
这篇关于Typescript -w(watch)在我的安装中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文