I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version, but it just
tsc --version
I know this is an old question, but I had this same problem on Ubuntu 19.10 LTS.
To solve this I ran the following command:
$ sudo apt install node-typescript
After that, I was able to use tsc.
tsc
I hope it helps :)