版本不匹配 global tsc 1.0.3.0 != VS Code 的语言服务 (2.2.1) [英] Version mismatch global tsc 1.0.3.0 != VS Code's language service (2.2.1)
本文介绍了版本不匹配 global tsc 1.0.3.0 != VS Code 的语言服务 (2.2.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个弹出窗口:
我尝试通过以下 cmd 中的命令安装正确的 tsc:
I tried to install the proper tsc by following commands in cmd:
npm install --g --save-dev typescript@2.2.1
和npm install --save-dev typescript@2.2.1
但它没有帮助,弹出窗口仍然在 VS Code 启动时显示.
but it didn't help, the popup still shows on VS Code startup.
推荐答案
原来问题是我也有 C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;
只需从我的路径中删除(删除文件夹 1.0)即可解决问题.当我跑
It turns out the problem was that I also had C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;
Simply removing (delete the folder 1.0) that from my path sorted the issue.
When I run
tsc --version
它现在显示我 2.6.2
it now shows me 2.6.2
这篇关于版本不匹配 global tsc 1.0.3.0 != VS Code 的语言服务 (2.2.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文