I want to install typescript, so I used the following command:
npm install -g typescript
A few tips in order
npm install typescript -g
If it still doesn't work run
npm config get prefix to see where npm install -g is putting files (append
bin to the output) and make sure that they are in the path (the node js setup does this. Maybe you forgot to tick that option).