0

I am getting started with TypeScript and have it installed here C:\Program Files (x86)\Microsoft SDKs\TypeScript

TS installation and versions

When I try to run tscVS Code gives this error:

enter image description here

How to configure VS Code to use one of the versions in there to compile using tsc? Any version will do fine.

Is there no option other than re-installing using npm?

Thanks in advance.

Codehelp
  • 4,157
  • 9
  • 59
  • 96

1 Answers1

1

You probably don't have tsc in your PATH. If you installed Typescript through Node locally, check this SO post: tsc is not recognized as internal or external command. Otherwise, open System Properties and go to Path Variables to set up your PATH (instructions).