How do you find out which version of typescript/tsc you run under Ubuntu? There's no manual or --version
switch for tsc
.
Asked
Active
Viewed 303 times
0

Olle Härstedt
- 3,799
- 1
- 24
- 57
-
`--version` works fine for me. – Ry- Jun 26 '14 at 15:41
-
@false Strange. Do you know how I can remove tsc to reinstall it? – Olle Härstedt Jun 26 '14 at 15:44
-
That depends on how you installed it in the first place. `npm install -g`? `npm uninstall -g typescript` should work. (I think just running `install` again will upgrade it, too.) – Ry- Jun 26 '14 at 15:47
2 Answers
0
Since I use Ubuntu 12.04, I installed an older version of node without my knowing, which in turn installed an older version of typescript. Appareantly, the old tsc command does not have the --version switch, but the new one has.

Olle Härstedt
- 3,799
- 1
- 24
- 57
0
In any version of TypeScript if you type in tsc
without any arguments it shows you its version in the help message.

basarat
- 261,912
- 58
- 460
- 511