Siekierson
Siekierson

Reputation: 1

On vscode :'tsc' is not recognized as an internal or external command, operable program or batch file

So, I take a TypeScript tutorial and came across an issue, if I write one of this phrases:

tsc --init
tsc filename.ts
tsc --help
tsc --version

I get this error:

tsc is not recognized as an internal or external command,
operable program or batch file.

I wrote npm install -g typescript in cmd but again, if I write something with tsc, I get the same error. I change "command":"npm" to "tsc" but this not helped.

I working in vscode on Windows. I don't know what I can do.

Upvotes: 0

Views: 750

Answers (1)

Abdullah Qureshi
Abdullah Qureshi

Reputation: 211

In VSCode use:

npx tsc -v

In cmd use:

tsc -v

Upvotes: 1

Related Questions