How to update TypeScript to latest version with npm?

blueMoon picture blueMoon · Sep 24, 2016 · Viewed 251.1k times · Source

Currently I have TypeScript 1.0.3.0 version installed on my machine.
I want to update it to latest one i.e. 2.0.

How to do this with npm?

Answer

eavidan picture eavidan · Sep 24, 2016

Try npm install -g typescript@latest. You can also use npm update instead of install, without the latest modifier.