TypeScript Version Always Shows 1.0

TypeScript Version Always Shows 1.0

9月 6, 2017 · 1 分钟阅读时长 · 49 字 · -阅读 -评论

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
开发者,数码产品爱好者,喜欢折腾,喜欢分享,喜欢开源