I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version, but it just
tsc --version
The only solution that work for me was put npx tsc -v or for the compiling npx tsc salida.ts
"salida.ts" is the name of the file