简体   繁体   English

如何安装旧版本的 Typescript?

[英]How to install older version of Typescript?

I recently installed Typescript 1.8 and found too many breaking issues.我最近安装了 Typescript 1.8 并发现了太多破坏性问题。 So for the time being I would like to install 1.7.所以暂时我想安装1.7。 Where can I get a link to down this?我在哪里可以得到这个的链接?

要安装打字稿 1.7.5,请使用

npm install typescript@1.7.5

to install globally npm install -g typescript@1.7.5全局npm install -g typescript@1.7.5

to check open cmd and run tsc -v检查打开的 cmd 并运行tsc -v

to install it for the specific project you are working on change to the directory of your project为您正在处理的特定项目安装它更改到您的项目目录

npm install typescript@1.7.5

and then check your package.json file然后检查你的 package.json 文件

If you are using visual studio 2017, it may be using visual studio's version of typescript.如果您使用的是 Visual Studio 2017,它可能使用的是 Visual Studio 的打字稿版本。

If you have a higher version of typescript and you want to install an Older version, you should Uninstall the current version by this command:如果您有更高版本的打字稿,并且要安装旧版本,则应通过以下命令卸载当前版本:

npm uninstall typescript

And then you can install the specific version you want like this for version(3.9.7):然后你可以为版本(3.9.7)安装你想要的特定版本:

npm install typescript@3.9.7

for Globally Install or Uninstall you can add -g to both of the above commands.对于全局安装卸载,您可以将 -g 添加到上述两个命令中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何安装与较早版本的TypeScript兼容的@types? - How can I install @types compatible with an older version of TypeScript? 如何在Mac OS X上安装较旧版本的TypeScript? - How does one install an older version of TypeScript on mac os x? 如何使 4.X Typescript 项目与旧版本的 Typescript 3.X 兼容? - How to make 4.X Typescript project compatible with older version of Typescript 3.X? 使用Typecript定义文件绝对键入旧版本的Typescript - Using Typescript Definitions Files from Definitely Typed with Older Version of Typescript 如何在没有Internet的情况下安装最新版本的Typescript(离线)? - How can I install the latest version of Typescript without Internet (offline)? 使用最新版本的TypeScript Definition和较旧的JavaScript库 - Using latest version of TypeScript Definition with older JavaScript libraries TypeScript - 如何将对象 A 的属性复制到扩展 A 的新对象 B 上 - 在旧 ts 版本上工作现已损坏 - TypeScript - how to copy object A's properties onto new object B that extends A - worked on older ts version now broken 我可以安装较旧版本的VS Extension“Web Essentials 2012”吗? - Can I Install an Older Version of the VS Extension “Web Essentials 2012”? TypeScript安装/版本错误:无法识别术语“ tsc” - TypeScript install/version error: The term 'tsc' is not recognized 如何更新TypeScript版本? - How to update the version of TypeScript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM