typescript 卸载没有节点的打字稿

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22393590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 02:53:53  来源:igfitidea点击:

uninstalling typescript without node

node.jsvisual-studio-2013typescript

提问by Crystal

I'm having a lot of trouble with Typescript. I installed the latest downloading it from their website and I'm trying to uninstall it in order to install an older version. I'm running VS 2013 as well. I've tried used npm when I installed nodejs, but I'm not sure if it's working. I see in node_modules, it creates a folder called typescript when I install it. When I try to uninstall, it will output unbuild typescript and some version number. So I would think that that did the trick. But then when I go to

我在使用 Typescript 时遇到了很多麻烦。我安装了从他们网站下载的最新版本,我正在尝试卸载它以安装旧版本。我也在运行 VS 2013。我在安装 nodejs 时尝试过使用 npm,但我不确定它是否有效。我在 node_modules 中看到,当我安装它时,它会创建一个名为 typescript 的文件夹。当我尝试卸载时,它会输出 unbuild typescript 和一些版本号。所以我认为那是成功的。但是当我去

C:\Program Files (x86)\Microsoft SDKs\TypeScript
tsc -v
.9

I see the tsc.exe is still there. And then when I try

我看到 tsc.exe 仍然存在。然后当我尝试

npm uninstall typescript

I see 0.9.7 is installed when I want to install an older version. I have been googling for hours and I must not be looking in the right areas. But how can I uninstall TS without using node since that doesn't seem to be working for me. I uninstalled and reinstalled node to see if that did the trick, restarted the computer, restarted VS2013. In VS2013 it will also allow me to create TS files even though I ran

当我想安装旧版本时,我看到安装了 0.9.7。我已经在谷歌上搜索了几个小时,我一定没有在正确的区域寻找。但是如何在不使用节点的情况下卸载 TS,因为这似乎对我不起作用。我卸载并重新安装节点以查看是否成功,重新启动计算机,重新启动 VS2013。在 VS2013 中,即使我跑了,它也允许我创建 TS 文件

##代码##

So I'm not sure what's going on and where this stuff gets installed, but I'd like to remove it manually somehow.

所以我不确定发生了什么以及这些东西的安装位置,但我想以某种方式手动删除它。

回答by basarat

The visual studio version of TypeScript does notdepend on nodejs. It uses IE for compilation.

TypeScript 的 Visual Studio 版本依赖于 nodejs。它使用IE进行编译。

You can uninstall the nodejs version using npm uninstall -g typescriptif you installed it previously (which you probably didn't).

npm uninstall -g typescript如果您之前安装了 nodejs 版本(您可能没有安装),则可以使用它来卸载 nodejs 版本。

And then simply install TS from : http://www.microsoft.com/en-us/download/details.aspx?id=34790

然后只需从以下位置安装 TS:http: //www.microsoft.com/en-us/download/details.aspx?id=34790

回答by WiredPrairie

To uninstall the version of Typescript used by Visual Studio, use "add/remove programs" in Windows and remove "TypeScript for Visual Studio". It's installed as a program rather than an extension for VS (and as you've noticed, it doesn't use the NodeJs version).

要卸载 Visual Studio 使用的 Typescript 版本,请在 Windows 中使用“添加/删除程序”并删除“TypeScript for Visual Studio”。它是作为程序安装的,而不是作为 VS 的扩展安装(正如您所注意到的,它不使用 NodeJs 版本)。