I've installed TypeScript using the command below.
npm install -g typescript
npm install -g typescript@next
npm list typescript
With NPM, whenever you want to determine if something is installed locally or globally you need to specify that, just like you do when you're installing a package. By default, if you don't specify the global flag
-g then npm will look within the current working directory.
npm list -g typescript