在最近的更新与代码转译停止工作之后:tsc无法识别为内部或外部命令 [英] After recent update vs code transpiling stopped working: tsc is not recognized as internal or external command

查看:110
本文介绍了在最近的更新与代码转译停止工作之后:tsc无法识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论如何,标题说明了一切,昨天更新后,Visual Code Studio并未将ts文件转换为js并说tsc被识别为外部或内部命令

The title says all, anyway, after update yesterday visual code studio is not transpiling ts files to js saying tsc is not recognized asa external or internal command

推荐答案

在您的设置中,设置打字稿sdk的位置

In your settings, set the location of the typescript sdk

该设置现在可以采用绝对路径和相对路径.

The setting can now take absolute and relative paths.

我在项目中本地安装了打字稿,所以我的坐姿看起来像

I have typescript installed locally in my projects, so my stting looks like

 {
     "typescript.tsdk": "./node_modules/typescript/lib"
 }

在撰写本文时,我使用最新的VSCode 0.10.5和TS 1.7.5

I use VSCode 0.10.5 and TS 1.7.5 which are the latest at time of writing

这篇关于在最近的更新与代码转译停止工作之后:tsc无法识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆