[英]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.