Install new version of TypeScript


In this article we are going to focus on how to install a new version of TypeScript using tsc -v command if there is already an older version of typescript installed on your computer due to Visual Studio installation.

In this article we are going to focus on how to install a new version of TypeScript if there is already an older version of typescript installed on your computer due to Visual Studio installation.

Open the command prompt and type tsc -v and then you will find the version of type script installed on your computer. I had version 1.0.3.0 installed and I would like to install the latest version of TypeScript.

Go to the environment variables on your computer and open the Path environment variable. Now remove the Type script path "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;".

path
Delete the TypeScript folder from the "C:\Program Files (x86)\Microsoft SDKs" path. I saved this folder to another location on my computer just to ensure that if the new command does not work I can restore it back.

Now go to command prompt and type the following command:

npm install -g typescript
tsc

This will install the latest version of the TypeScript on your computer and you can confirm it using tsc -v command which displays the message as shown in the screenshot below.
tscversion

Voila!! you now have a latest version of TypeScript installed.


Article by Vaishali Jain
Miss. Jain Microsoft Certified Technology Specialist in .Net(Windows and Web Based application development)

Follow Vaishali Jain or read 127 articles authored by Vaishali Jain

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: