CMD does not recognize tsc -v (TYPESCRIPT) command


Very good. I'm trying to install Angular CLI. I installed node and npm, and I thought I had also installed typescript, but when I check if it has been installed through the command tsc -v I get the following message: "tsc" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable . What is this about? Does it mean that it has not been installed? Thanks and best regards

asked by Inca 14.08.2018 в 21:37

1 answer


To install TypeScript and recognize it as a command in the CMD or Terminal you have to install the module globally with the command:

npm install -g typescript

Once installed in any location you can send it to call tsc nombreDelArchivo.ts

NOTE: Remember to close the CMD or Terminal window to load the installed commands again

RTFM: link

answered by 14.08.2018 / 23:08