TypeScript Version Always Shows 1.0

TypeScript Version Always Shows 1.0

Sep 6, 2017 · 1 min read · 49 Words · -Views -Comments

On Windows, tsc --version showed 1.0.3.0 even though I’d installed TypeScript 2.3.4. Running where tsc revealed the culprit.

Version Output

version screenshot

System PATH

path screenshot

The PATH pointed to C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0—the compiler bundled with Visual Studio.

Fix

Remove that path entry and rerun tsc --version:

after removing

Now the correct version appears.

Alan H
Authors
Developer, Tech Enthusiast, Open Source Advocate