typescriptnpmtsc

This is not the tsc command you are looking for


When I run tsc in the terminal (it does not matter where) I get returned:

$ npx tsc --version

                This is not the tsc command you are looking for


To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages

I do not have TypeScript installed globally to my knowledge so what I am expecting is that it can't find tsc.


Solution

  • I had installed the old typescript compiler https://www.npmjs.com/package/tsc by mistake.

    running where.exe tsc to find out what I was actually running suggested by @siddharth made me find the issue