How to upgrade Typescript to the latest version?

I had the same problem below procedure worked for me

Update NPM

npm install npm@latest -g

Update typescript

npm -g upgrade typescript

or

npm install typescript@latest -g

now you should see

tsc --version

Version 2.1.5


Since selected correct answer didn't help me I figured I'd share how I resolved the issue.

I had to remove C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\ from my PATH.

After that I could run this command and see the version I was expecting:

C:\>tsc --version
message TS6029: Version 1.5.3

Tags:

Npm

Typescript