打字稿版本未更新 [英] Typescript version does not update

查看:53
本文介绍了打字稿版本未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行以下命令将TypeScript版本从1.8.5更新为2.0.7:

I am running the following command to update my TypeScript version from 1.8.5 to 2.0.7 :

npm install -g打字稿

它显示为-typescript@2.0.7

然后,当我尝试使用 tsc --version 对其进行手动检查时, 它显示了我:版本1.8.5

Afterwards, when I am trying to check it manually using : tsc --version, it shows me : Version 1.8.5

请告诉我如何将打字稿的版本从1.8.5升级到2.0.7 .

推荐答案

下载"TypeScript_Dev12.exe"并运行它.

Down load "TypeScript_Dev12.exe" and run it.

成功安装后,您将在系统中找到"C:\ Program Files(x86)\ Microsoft SDKs \ TypeScript \ 2.0".复制该路径.

After successfully installing, you will find "C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.0" in your system. Copy that path.

现在转到环境变量->系统变量->路径,现在单击编辑.删除脚本类型的旧路径,然后在该位置添加新路径.

Now go to Environment Variables->System Variables->Path, now click on edit. Remove old path of type script and add new path over there.

现在重新启动系统.现在,您会发现2.0是您的打字稿版本.

Now restart your system. You will now find 2.0 as your typescript version.

这篇关于打字稿版本未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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